chiefwiggum 1.3.4 → 1.3.7
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/dist/cli.cjs +6 -28
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -537,8 +537,8 @@ async function cmdNew(planFile) {
|
|
|
537
537
|
console.log(import_picocolors7.default.yellow("Aborted."));
|
|
538
538
|
process.exit(0);
|
|
539
539
|
}
|
|
540
|
-
await setupTemplates();
|
|
541
540
|
await setupProjectConfig();
|
|
541
|
+
await setupTemplates();
|
|
542
542
|
if (planFile) {
|
|
543
543
|
if (!(0, import_node_fs3.existsSync)(planFile)) {
|
|
544
544
|
console.log(import_picocolors7.default.red(`Plan file not found: ${planFile}`));
|
|
@@ -665,35 +665,13 @@ async function setupProjectConfig() {
|
|
|
665
665
|
message: "Use GitHub Issues to track tasks? (instead of TODO.md)",
|
|
666
666
|
initialValue: false
|
|
667
667
|
});
|
|
668
|
+
const config2 = {
|
|
669
|
+
tracker: useGitHub ? "github" : "todo"
|
|
670
|
+
};
|
|
671
|
+
(0, import_node_fs3.writeFileSync)(CONFIG_FILE, JSON.stringify(config2, null, 2) + "\n");
|
|
672
|
+
console.log(import_picocolors7.default.green(`\u2713 Config saved to ${CONFIG_FILE}`));
|
|
668
673
|
if (useGitHub) {
|
|
669
|
-
const configContent = `# Chief Wiggum Config
|
|
670
|
-
|
|
671
|
-
## Project Tracker
|
|
672
|
-
|
|
673
|
-
github
|
|
674
|
-
|
|
675
|
-
## Notes
|
|
676
|
-
|
|
677
|
-
When project_tracker is set to "github", Chief Wiggum will create GitHub Issues
|
|
678
|
-
instead of using TODO.md for task tracking.
|
|
679
|
-
`;
|
|
680
|
-
(0, import_node_fs3.writeFileSync)(CONFIG_FILE, configContent);
|
|
681
|
-
console.log(import_picocolors7.default.green(`\u2713 Config saved to ${CONFIG_FILE}`));
|
|
682
674
|
console.log(import_picocolors7.default.dim(" Tasks will be created as GitHub Issues."));
|
|
683
|
-
} else {
|
|
684
|
-
const configContent = `# Chief Wiggum Config
|
|
685
|
-
|
|
686
|
-
## Project Tracker
|
|
687
|
-
|
|
688
|
-
todo
|
|
689
|
-
|
|
690
|
-
## Notes
|
|
691
|
-
|
|
692
|
-
When project_tracker is set to "todo", Chief Wiggum uses TODO.md for task tracking.
|
|
693
|
-
Change to "github" to use GitHub Issues instead.
|
|
694
|
-
`;
|
|
695
|
-
(0, import_node_fs3.writeFileSync)(CONFIG_FILE, configContent);
|
|
696
|
-
console.log(import_picocolors7.default.green(`\u2713 Config saved to ${CONFIG_FILE}`));
|
|
697
675
|
}
|
|
698
676
|
console.log();
|
|
699
677
|
}
|