claude-code-team 0.1.3 → 0.1.4
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/cct.js +5 -1
- package/package.json +1 -1
package/bin/cct.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
const { init } = require('../lib/init');
|
|
4
|
+
const { version } = require('../package.json');
|
|
4
5
|
|
|
5
6
|
const args = process.argv.slice(2);
|
|
6
7
|
const command = args[0];
|
|
@@ -8,13 +9,16 @@ const command = args[0];
|
|
|
8
9
|
if (command === 'init') {
|
|
9
10
|
const name = args[1] || '.';
|
|
10
11
|
init(name);
|
|
12
|
+
} else if (command === '--version' || command === '-v') {
|
|
13
|
+
console.log(`cct v${version}`);
|
|
11
14
|
} else if (command === '--help' || command === '-h' || !command) {
|
|
12
15
|
console.log(`
|
|
13
|
-
CCT - Claude Code Team
|
|
16
|
+
CCT - Claude Code Team v${version}
|
|
14
17
|
|
|
15
18
|
Usage:
|
|
16
19
|
cct init <name> Create new CCT project
|
|
17
20
|
cct init . Initialize in current folder
|
|
21
|
+
cct --version Show version
|
|
18
22
|
cct --help Show this help
|
|
19
23
|
|
|
20
24
|
Example:
|