@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.
Files changed (2) hide show
  1. package/index.ts +6 -1
  2. 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 (args.length === 0 || isHelpFlag(args[0]!)) {
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:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-dev/cli",
3
- "version": "0.18.0",
3
+ "version": "0.19.0",
4
4
  "description": "A kanban workflow in the terminal.",
5
5
  "license": "MIT",
6
6
  "bugs": {