@zinn-dev/cli 0.18.0 → 0.19.0
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/index.ts +6 -1
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
|
|
3
3
|
import { isHelpFlag } from "./src/lib";
|
|
4
|
+
import packageJson from "./package.json";
|
|
4
5
|
|
|
5
6
|
const args = process.argv.slice(2);
|
|
7
|
+
const isVersionRequest = args.length === 1 && args[0] === "--version";
|
|
6
8
|
|
|
7
|
-
if (
|
|
9
|
+
if (isVersionRequest) {
|
|
10
|
+
console.info(packageJson.version);
|
|
11
|
+
} else if (args.length === 0 || isHelpFlag(args[0]!)) {
|
|
8
12
|
console.info(`ZINN - A kanban workflow in the terminal
|
|
9
13
|
|
|
10
14
|
Usage: zinn <command>
|
|
11
15
|
|
|
12
16
|
Options:
|
|
13
17
|
-h, --help Show help
|
|
18
|
+
--version Show version
|
|
14
19
|
--json Print command output as JSON
|
|
15
20
|
|
|
16
21
|
Commands:
|