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
This commit is contained in:
s41r4j
2025-10-26 21:33:23 +05:30
parent 5846c77f51
commit 4a30dd018f
3 changed files with 24 additions and 3 deletions
+9
View File
@@ -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
+14 -2
View File
@@ -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 <name>', 'AI provider: auto|openai|gemini|groq|none')
.option('--model <name>', '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')
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "gims",
"version": "0.6.6",
"version": "0.6.7",
"description": "Git Made Simple AIpowered git helper using Gemini / OpenAI",
"author": "S41R4J",
"license": "MIT",