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:
@@ -1,5 +1,14 @@
|
|||||||
# Changelog
|
# 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
|
## [0.6.6] - 2025-10-26
|
||||||
|
|
||||||
### 🔧 Improvements
|
### 🔧 Improvements
|
||||||
|
|||||||
+14
-2
@@ -137,7 +137,7 @@ async function hasChanges() {
|
|||||||
program
|
program
|
||||||
.name('gims')
|
.name('gims')
|
||||||
.alias('g')
|
.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('--provider <name>', 'AI provider: auto|openai|gemini|groq|none')
|
||||||
.option('--model <name>', 'Model identifier for provider')
|
.option('--model <name>', 'Model identifier for provider')
|
||||||
.option('--staged-only', 'Use only staged changes (default for suggest)')
|
.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')
|
.description('Show quick reference for main commands')
|
||||||
.action(() => {
|
.action(() => {
|
||||||
console.log(color.bold('🚀 GIMS Quick Reference\n'));
|
console.log(color.bold('🚀 GIMS Quick Reference\n'));
|
||||||
@@ -648,6 +648,18 @@ program.command('pull')
|
|||||||
catch (e) { handleError('Pull error', e); }
|
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')
|
program.command('sync')
|
||||||
.description('Smart sync: pull + rebase/merge')
|
.description('Smart sync: pull + rebase/merge')
|
||||||
.option('--rebase', 'Use rebase instead of merge')
|
.option('--rebase', 'Use rebase instead of merge')
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "gims",
|
"name": "gims",
|
||||||
"version": "0.6.6",
|
"version": "0.6.7",
|
||||||
"description": "Git Made Simple – AI‑powered git helper using Gemini / OpenAI",
|
"description": "Git Made Simple – AI‑powered git helper using Gemini / OpenAI",
|
||||||
"author": "S41R4J",
|
"author": "S41R4J",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
Reference in New Issue
Block a user