chiefwiggum 1.3.42 → 1.3.43
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 +18 -2
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -1078,16 +1078,32 @@ async function setupProjectConfig() {
|
|
|
1078
1078
|
console.log("Make sure you're in a git repo with a GitHub remote.");
|
|
1079
1079
|
}
|
|
1080
1080
|
console.log();
|
|
1081
|
+
let exitHint = "Then run chiefwiggum new again";
|
|
1082
|
+
let exitCommand = "";
|
|
1083
|
+
if (ghCheck.reason === "not_installed") {
|
|
1084
|
+
exitHint = "brew install gh (macOS) or apt install gh (Linux)";
|
|
1085
|
+
exitCommand = "gh --version";
|
|
1086
|
+
} else if (ghCheck.reason === "not_authenticated") {
|
|
1087
|
+
exitHint = "gh auth login";
|
|
1088
|
+
exitCommand = "gh auth login";
|
|
1089
|
+
} else if (ghCheck.reason === "not_github_repo") {
|
|
1090
|
+
exitHint = "git remote add origin <url>";
|
|
1091
|
+
exitCommand = "git remote -v";
|
|
1092
|
+
}
|
|
1081
1093
|
const fallback = await select2({
|
|
1082
1094
|
message: "What would you like to do?",
|
|
1083
1095
|
options: [
|
|
1084
1096
|
{ value: "todo", label: "Use TODO.md instead", hint: "Track tasks locally" },
|
|
1085
|
-
{ value: "exit", label: "Exit and set up gh first", hint:
|
|
1097
|
+
{ value: "exit", label: "Exit and set up gh first", hint: exitHint }
|
|
1086
1098
|
]
|
|
1087
1099
|
});
|
|
1088
1100
|
if (fallback === "exit") {
|
|
1089
1101
|
console.log();
|
|
1090
|
-
|
|
1102
|
+
if (exitCommand) {
|
|
1103
|
+
console.log(import_picocolors7.default.cyan(` ${exitCommand}`));
|
|
1104
|
+
console.log();
|
|
1105
|
+
}
|
|
1106
|
+
console.log(import_picocolors7.default.dim("Then run 'chiefwiggum new' again."));
|
|
1091
1107
|
process.exit(0);
|
|
1092
1108
|
}
|
|
1093
1109
|
config2.projectTracker = "todo";
|