cnagent 2.0.0 → 2.0.1
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 +6 -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.0';
|
|
15
15
|
|
|
16
16
|
// Colors (respects NO_COLOR)
|
|
17
17
|
const noColor = process.env.NO_COLOR !== undefined;
|
|
@@ -186,7 +186,11 @@ if (command === 'init') {
|
|
|
186
186
|
// Find hub
|
|
187
187
|
const hubPath = findHubPath();
|
|
188
188
|
if (!hubPath) {
|
|
189
|
-
fail('Not in a cn hub.
|
|
189
|
+
fail('Not in a cn hub.');
|
|
190
|
+
console.log('');
|
|
191
|
+
console.log('Either:');
|
|
192
|
+
console.log(` 1) ${cmd('cd')} into an existing hub (cn-sigma, cn-pi, etc.)`);
|
|
193
|
+
console.log(` 2) ${cmd('cn init <name>')} to create a new one`);
|
|
190
194
|
process.exit(1);
|
|
191
195
|
}
|
|
192
196
|
|