repowise 0.1.18 → 0.1.19
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/bin/repowise.js +20 -27
- package/package.json +1 -1
package/dist/bin/repowise.js
CHANGED
|
@@ -2327,39 +2327,32 @@ import { Command } from "commander";
|
|
|
2327
2327
|
// src/lib/welcome.ts
|
|
2328
2328
|
init_config();
|
|
2329
2329
|
import chalk from "chalk";
|
|
2330
|
+
var W = 41;
|
|
2331
|
+
function row(styled, visible) {
|
|
2332
|
+
return chalk.cyan(" \u2502") + styled + " ".repeat(W - visible) + chalk.cyan("\u2502");
|
|
2333
|
+
}
|
|
2330
2334
|
async function showWelcome(currentVersion) {
|
|
2331
2335
|
try {
|
|
2332
2336
|
const config2 = await getConfig();
|
|
2333
2337
|
if (config2.lastSeenVersion === currentVersion) return;
|
|
2334
2338
|
const isUpgrade = !!config2.lastSeenVersion;
|
|
2339
|
+
const tag = isUpgrade ? "updated" : "installed";
|
|
2340
|
+
const titleText = `RepoWise v${currentVersion}`;
|
|
2341
|
+
const titleStyled = " " + chalk.bold(titleText) + chalk.green(` \u2713 ${tag}`);
|
|
2342
|
+
const titleVisible = 3 + titleText.length + 3 + tag.length;
|
|
2343
|
+
const border = "\u2500".repeat(W);
|
|
2335
2344
|
console.log("");
|
|
2336
|
-
console.log(chalk.cyan(
|
|
2337
|
-
console.log(
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
}
|
|
2347
|
-
console.log(chalk.cyan(" \u2502 \u2502"));
|
|
2348
|
-
console.log(
|
|
2349
|
-
chalk.cyan(" \u2502 ") + chalk.dim("Get started:") + chalk.cyan(" \u2502")
|
|
2350
|
-
);
|
|
2351
|
-
console.log(
|
|
2352
|
-
chalk.cyan(" \u2502 $ ") + chalk.bold("repowise create") + chalk.cyan(" \u2502")
|
|
2353
|
-
);
|
|
2354
|
-
console.log(chalk.cyan(" \u2502 \u2502"));
|
|
2355
|
-
console.log(
|
|
2356
|
-
chalk.cyan(" \u2502 ") + chalk.dim("Thank you for using RepoWise!") + chalk.cyan(" \u2502")
|
|
2357
|
-
);
|
|
2358
|
-
console.log(
|
|
2359
|
-
chalk.cyan(" \u2502 ") + chalk.dim("https://repowise.ai") + chalk.cyan(" \u2502")
|
|
2360
|
-
);
|
|
2361
|
-
console.log(chalk.cyan(" \u2502 \u2502"));
|
|
2362
|
-
console.log(chalk.cyan(" \u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256F"));
|
|
2345
|
+
console.log(chalk.cyan(` \u256D${border}\u256E`));
|
|
2346
|
+
console.log(row("", 0));
|
|
2347
|
+
console.log(row(titleStyled, titleVisible));
|
|
2348
|
+
console.log(row("", 0));
|
|
2349
|
+
console.log(row(" " + chalk.dim("Get started:"), 15));
|
|
2350
|
+
console.log(row(" $ " + chalk.bold("repowise create"), 22));
|
|
2351
|
+
console.log(row("", 0));
|
|
2352
|
+
console.log(row(" " + chalk.dim("Thank you for using RepoWise!"), 32));
|
|
2353
|
+
console.log(row(" " + chalk.dim("https://repowise.ai"), 22));
|
|
2354
|
+
console.log(row("", 0));
|
|
2355
|
+
console.log(chalk.cyan(` \u2570${border}\u256F`));
|
|
2363
2356
|
console.log("");
|
|
2364
2357
|
await saveConfig({ ...config2, lastSeenVersion: currentVersion });
|
|
2365
2358
|
} catch {
|