@doquflow/cli 0.4.1 → 0.4.2

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/dist/index.js +14 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -33,8 +33,13 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  return result;
34
34
  };
35
35
  })();
36
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
37
+ const { version } = require('../package.json');
36
38
  const [, , cmd, flag] = process.argv;
37
- if (cmd === 'init') {
39
+ if (cmd === '--version' || cmd === '-v') {
40
+ console.log(version);
41
+ }
42
+ else if (cmd === 'init') {
38
43
  if (flag === '--interactive' || flag === '-i') {
39
44
  Promise.resolve().then(() => __importStar(require('./commands/init-interactive'))).then(m => m.runInteractive());
40
45
  }
@@ -49,10 +54,16 @@ else if (cmd === 'suggest') {
49
54
  Promise.resolve().then(() => __importStar(require('./commands/suggest'))).then(m => m.run());
50
55
  }
51
56
  else {
52
- console.log('Usage: npx @doquflow/cli <command>');
57
+ console.log(`DocuFlow v${version}`);
58
+ console.log('');
59
+ console.log('Usage: docuflow <command>');
53
60
  console.log('');
54
- console.log(' init Register Docuflow MCP and generate CLAUDE.md');
61
+ console.log('Commands:');
62
+ console.log(' init Register DocuFlow MCP and generate CLAUDE.md');
55
63
  console.log(' init --interactive Interactive setup wizard (choose domain, project name)');
56
64
  console.log(' status Show wiki health, page counts, and MCP status');
57
65
  console.log(' suggest Show what to document first (domain-specific guidance)');
66
+ console.log('');
67
+ console.log('Options:');
68
+ console.log(' --version, -v Print version number');
58
69
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doquflow/cli",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "CLI for setting up Docuflow in your project",
5
5
  "author": "Docuflow <hello@doquflows.dev>",
6
6
  "license": "MIT",
@@ -30,7 +30,7 @@
30
30
  "build": "tsc"
31
31
  },
32
32
  "dependencies": {
33
- "@doquflow/server": "0.4.1"
33
+ "@doquflow/server": "0.4.2"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/node": "^22.0.0",