@miphamai/cli 0.5.2 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/mipham.ts +7 -0
- package/package.json +1 -1
package/bin/mipham.ts
CHANGED
|
@@ -179,6 +179,13 @@ async function runPluginCLI(): Promise<boolean> {
|
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
async function main() {
|
|
182
|
+
// ── Version flag ──────────────────────────────────────────────────────────
|
|
183
|
+
if (process.argv.includes('--version') || process.argv.includes('-v') || process.argv.includes('-V')) {
|
|
184
|
+
const pkg = await import('../package.json')
|
|
185
|
+
console.log(`${pkg.name} v${pkg.version}`)
|
|
186
|
+
process.exit(0)
|
|
187
|
+
}
|
|
188
|
+
|
|
182
189
|
// Check for plugin subcommands first
|
|
183
190
|
const handledPlugin = await runPluginCLI()
|
|
184
191
|
if (handledPlugin) return
|