unoverse 0.1.8 → 0.1.10
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/unoverse.mjs +9 -7
- package/package.json +1 -1
package/bin/unoverse.mjs
CHANGED
|
@@ -61,8 +61,10 @@ const cyan = paint("36");
|
|
|
61
61
|
const green = paint("32");
|
|
62
62
|
|
|
63
63
|
const CMDS = [
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
// TWO LINES, not one with a caveat. "No name scaffolds into the folder you are in;
|
|
65
|
+
// a name makes one" made the reader hold both cases in their head to understand either.
|
|
66
|
+
["create", "What are you building? Studio project · universe · client app"],
|
|
67
|
+
["create <name>", "The same, in a new folder"],
|
|
66
68
|
["studio", "Author components, nodes, agent skills"],
|
|
67
69
|
["where", "Your universe's addresses, probed live, not recited"],
|
|
68
70
|
["update", "Update this CLI to the latest version"],
|
|
@@ -74,14 +76,14 @@ const HELP = [
|
|
|
74
76
|
"",
|
|
75
77
|
` ${cyan("⬡")} ${bold("unoverse")}`,
|
|
76
78
|
"",
|
|
77
|
-
...CMDS.
|
|
79
|
+
...CMDS.map(([cmd, desc]) =>
|
|
78
80
|
` ${green(cmd)}${" ".repeat(PAD - cmd.length)} ${desc}`,
|
|
79
|
-
|
|
80
|
-
]),
|
|
81
|
-
"",
|
|
82
|
-
` ${dim("In a universe folder, add:")} ${green("start")} ${dim("·")} ${green("stop")} ${dim("·")} ${green("check")} ${dim("·")} ${green("logs")} ${dim("·")} ${green("deploy")}`,
|
|
81
|
+
),
|
|
83
82
|
"",
|
|
84
83
|
].join("\n");
|
|
84
|
+
// NO "in a universe folder, add: ..." line. It named a thing a new user has never seen
|
|
85
|
+
// and listed commands they cannot run. The CLI already knows where you are standing, so
|
|
86
|
+
// those commands appear when they apply and stay invisible when they do not.
|
|
85
87
|
|
|
86
88
|
switch (cmd) {
|
|
87
89
|
case "create":
|
package/package.json
CHANGED