create-egregore 0.3.2 → 0.3.3
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/cli.js +2 -2
- package/lib/setup.js +3 -1
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -38,7 +38,7 @@ function showHelp() {
|
|
|
38
38
|
ui.info(" npx create-egregore Interactive setup");
|
|
39
39
|
ui.info("");
|
|
40
40
|
ui.info("Options:");
|
|
41
|
-
ui.info(" --token <token> Setup token from egregore.
|
|
41
|
+
ui.info(" --token <token> Setup token from egregore-core.netlify.app");
|
|
42
42
|
ui.info(" --api <url> API URL override");
|
|
43
43
|
ui.info(" -h, --help Show this help");
|
|
44
44
|
ui.info("");
|
|
@@ -76,7 +76,7 @@ async function tokenFlow(api, token) {
|
|
|
76
76
|
ui.error(err.message);
|
|
77
77
|
ui.info("");
|
|
78
78
|
ui.info("The token may have expired or already been used.");
|
|
79
|
-
ui.info("Visit egregore.
|
|
79
|
+
ui.info("Visit egregore-core.netlify.app to get a new one, or run without --token:");
|
|
80
80
|
ui.info(" npx create-egregore");
|
|
81
81
|
process.exit(1);
|
|
82
82
|
}
|
package/lib/setup.js
CHANGED
|
@@ -167,7 +167,9 @@ async function installShellAlias(egregoreDir, ui) {
|
|
|
167
167
|
const defaultName = suggested || "egregore";
|
|
168
168
|
|
|
169
169
|
// Ask user what they want to call it
|
|
170
|
-
|
|
170
|
+
console.log("");
|
|
171
|
+
ui.info(`This instance will be launched with a shell command.`);
|
|
172
|
+
const answer = await ui.prompt(`Command name (Enter for ${ui.bold(defaultName)}):`);
|
|
171
173
|
const chosenName = answer || defaultName;
|
|
172
174
|
|
|
173
175
|
// Install with chosen name
|