From 4a30dd018f2b3c6a1429fad8296c809f68e94c29 Mon Sep 17 00:00:00 2001 From: s41r4j Date: Sun, 26 Oct 2025 21:33:23 +0530 Subject: [PATCH] fix: add -v flag, rename help-quick to quick-help, add push command - Add -v/--version flag to show version number - Rename help-quick command to quick-help (alias 'q' still works) - Add standalone 'push' command (g push or gims push) - Bumped version to 0.6.7 --- CHANGELOG.md | 9 +++++++++ bin/gims.js | 16 ++++++++++++++-- package.json | 2 +- 3 files changed, 24 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 20fe259..8bbb333 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## [0.6.7] - 2025-10-26 + +### 🔧 Fixes +- **Added `-v` flag for version**: Now `g -v` or `gims -v` shows the version number +- **Renamed command**: Changed `help-quick` to `quick-help` (alias `q` still works) +- **Added `push` command**: Now `g push` or `gims push` works as a standalone command + +--- + ## [0.6.6] - 2025-10-26 ### 🔧 Improvements diff --git a/bin/gims.js b/bin/gims.js index d8e60c5..9e492e7 100755 --- a/bin/gims.js +++ b/bin/gims.js @@ -137,7 +137,7 @@ async function hasChanges() { program .name('gims') .alias('g') - .version(require('../package.json').version) + .version(require('../package.json').version, '-v, --version', 'Output the version number') .option('--provider ', 'AI provider: auto|openai|gemini|groq|none') .option('--model ', 'Model identifier for provider') .option('--staged-only', 'Use only staged changes (default for suggest)') @@ -321,7 +321,7 @@ program.command('config') } }); -program.command('help-quick').alias('q') +program.command('quick-help').alias('q') .description('Show quick reference for main commands') .action(() => { console.log(color.bold('🚀 GIMS Quick Reference\n')); @@ -648,6 +648,18 @@ program.command('pull') catch (e) { handleError('Pull error', e); } }); +program.command('push') + .description('Push commits to remote') + .action(async () => { + await ensureRepo(); + try { + Progress.info('Pushing to remote...'); + await git.push(); + Progress.success('Pushed to remote'); + } + catch (e) { handleError('Push error', e); } + }); + program.command('sync') .description('Smart sync: pull + rebase/merge') .option('--rebase', 'Use rebase instead of merge') diff --git a/package.json b/package.json index 700ff94..1ee85f5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gims", - "version": "0.6.6", + "version": "0.6.7", "description": "Git Made Simple – AI‑powered git helper using Gemini / OpenAI", "author": "S41R4J", "license": "MIT",