cnagent 2.0.0 → 2.0.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.
- package/bin/cn +7 -2
- package/package.json +1 -1
package/bin/cn
CHANGED
|
@@ -11,7 +11,7 @@ const { execSync, spawn } = require('child_process');
|
|
|
11
11
|
const path = require('path');
|
|
12
12
|
const fs = require('fs');
|
|
13
13
|
|
|
14
|
-
const VERSION = '0.
|
|
14
|
+
const VERSION = '2.0.2';
|
|
15
15
|
|
|
16
16
|
// Colors (respects NO_COLOR)
|
|
17
17
|
const noColor = process.env.NO_COLOR !== undefined;
|
|
@@ -98,6 +98,7 @@ function runInbox(subCmd, hubPath, name) {
|
|
|
98
98
|
|
|
99
99
|
// Doctor command
|
|
100
100
|
function doctor(hubPath) {
|
|
101
|
+
console.log(`cn v${VERSION}`);
|
|
101
102
|
info(`Checking health...`);
|
|
102
103
|
console.log('');
|
|
103
104
|
|
|
@@ -186,7 +187,11 @@ if (command === 'init') {
|
|
|
186
187
|
// Find hub
|
|
187
188
|
const hubPath = findHubPath();
|
|
188
189
|
if (!hubPath) {
|
|
189
|
-
fail('Not in a cn hub.
|
|
190
|
+
fail('Not in a cn hub.');
|
|
191
|
+
console.log('');
|
|
192
|
+
console.log('Either:');
|
|
193
|
+
console.log(` 1) ${cmd('cd')} into an existing hub (cn-sigma, cn-pi, etc.)`);
|
|
194
|
+
console.log(` 2) ${cmd('cn init <name>')} to create a new one`);
|
|
190
195
|
process.exit(1);
|
|
191
196
|
}
|
|
192
197
|
|