@useorgx/wizard 0.1.5 → 0.1.6
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.js +7 -3
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -8,7 +8,7 @@ import pc3 from "picocolors";
|
|
|
8
8
|
|
|
9
9
|
// src/banner.ts
|
|
10
10
|
import pc from "picocolors";
|
|
11
|
-
function renderBanner() {
|
|
11
|
+
function renderBanner(version) {
|
|
12
12
|
const lines = [
|
|
13
13
|
" ____ ____ _______ __",
|
|
14
14
|
" / __ \\/ __ \\ / ____/ |/ /",
|
|
@@ -16,7 +16,9 @@ function renderBanner() {
|
|
|
16
16
|
"/ /_/ / _, _// /_/ // | ",
|
|
17
17
|
"\\____/_/ |_| \\____//_/|_| "
|
|
18
18
|
];
|
|
19
|
-
|
|
19
|
+
const art = lines.map((line) => pc.cyan(line)).join("\n");
|
|
20
|
+
const tag = version ? ` ${pc.dim(`v${version}`)}` : "";
|
|
21
|
+
return `${art}${tag}`;
|
|
20
22
|
}
|
|
21
23
|
|
|
22
24
|
// src/constants.ts
|
|
@@ -3302,8 +3304,10 @@ function printDoctorReport(report, assessment) {
|
|
|
3302
3304
|
async function main() {
|
|
3303
3305
|
const program = new Command();
|
|
3304
3306
|
program.name("orgx-wizard").description("One-line CLI onboarding for OrgX surfaces.").showHelpAfterError();
|
|
3307
|
+
const pkgVersion = true ? "0.1.6" : void 0;
|
|
3308
|
+
program.version(pkgVersion ?? "unknown", "-V, --version");
|
|
3305
3309
|
program.hook("preAction", () => {
|
|
3306
|
-
console.log(renderBanner());
|
|
3310
|
+
console.log(renderBanner(pkgVersion));
|
|
3307
3311
|
});
|
|
3308
3312
|
program.command("setup").description("Patch all detected automated OrgX surfaces.").option("--preset <name>", "run a setup bundle (currently: founder)").action(async (options) => {
|
|
3309
3313
|
if (options.preset) {
|