telos-framework 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/lib/commands/init.js +11 -4
- package/package.json +1 -1
package/lib/commands/init.js
CHANGED
|
@@ -23,11 +23,18 @@ async function initCommand(options) {
|
|
|
23
23
|
try {
|
|
24
24
|
const telosData = await discoverTelos(options);
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
let hierarchy;
|
|
27
|
+
|
|
28
|
+
if (options.quick) {
|
|
29
|
+
const spinner = ora('Building purpose hierarchy...').start();
|
|
30
|
+
hierarchy = await buildHierarchy(telosData, options);
|
|
31
|
+
spinner.succeed('Purpose hierarchy built');
|
|
32
|
+
} else {
|
|
33
|
+
hierarchy = await buildHierarchy(telosData, options);
|
|
34
|
+
console.log(chalk.green('\n✓ Purpose hierarchy built\n'));
|
|
35
|
+
}
|
|
29
36
|
|
|
30
|
-
spinner
|
|
37
|
+
const spinner = ora('Generating TELOS.md...').start();
|
|
31
38
|
const telosPath = path.join(process.cwd(), 'telos', 'content', 'TELOS.md');
|
|
32
39
|
await generateTelosMd(hierarchy, telosPath);
|
|
33
40
|
spinner.succeed(`Generated ${telosPath}`);
|
package/package.json
CHANGED