fix: soften windows daemon install
This commit is contained in:
@@ -42,6 +42,28 @@ const STEP_LABELS: Record<string, string> = {
|
||||
type UpdateChannel = "stable" | "beta";
|
||||
|
||||
const DEFAULT_UPDATE_CHANNEL: UpdateChannel = "stable";
|
||||
const UPDATE_QUIPS = [
|
||||
"Leveled up! New skills unlocked. You're welcome.",
|
||||
"Fresh code, same lobster. Miss me?",
|
||||
"Back and better. Did you even notice I was gone?",
|
||||
"Update complete. I learned some new tricks while I was out.",
|
||||
"Upgraded! Now with 23% more sass.",
|
||||
"I've evolved. Try to keep up.",
|
||||
"New version, who dis? Oh right, still me but shinier.",
|
||||
"Patched, polished, and ready to pinch. Let's go.",
|
||||
"The lobster has molted. Harder shell, sharper claws.",
|
||||
"Update done! Check the changelog or just trust me, it's good.",
|
||||
"Reborn from the boiling waters of npm. Stronger now.",
|
||||
"I went away and came back smarter. You should try it sometime.",
|
||||
"Update complete. The bugs feared me, so they left.",
|
||||
"New version installed. Old version sends its regards.",
|
||||
"Firmware fresh. Brain wrinkles: increased.",
|
||||
"I've seen things you wouldn't believe. Anyway, I'm updated.",
|
||||
"Back online. The changelog is long but our friendship is longer.",
|
||||
"Upgraded! Peter fixed stuff. Blame him if it breaks.",
|
||||
"Molting complete. Please don't look at my soft shell phase.",
|
||||
"Version bump! Same chaos energy, fewer crashes (probably).",
|
||||
];
|
||||
|
||||
function normalizeChannel(value?: string | null): UpdateChannel | null {
|
||||
if (!value) return null;
|
||||
@@ -61,6 +83,10 @@ function channelToTag(channel: UpdateChannel): string {
|
||||
return channel === "beta" ? "beta" : "latest";
|
||||
}
|
||||
|
||||
function pickUpdateQuip(): string {
|
||||
return UPDATE_QUIPS[Math.floor(Math.random() * UPDATE_QUIPS.length)] ?? "Update complete.";
|
||||
}
|
||||
|
||||
function normalizeVersionTag(tag: string): string | null {
|
||||
const trimmed = tag.trim();
|
||||
if (!trimmed) return null;
|
||||
@@ -402,6 +428,10 @@ export async function updateCommand(opts: UpdateCommandOptions): Promise<void> {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if (!opts.json) {
|
||||
defaultRuntime.log(theme.muted(pickUpdateQuip()));
|
||||
}
|
||||
}
|
||||
|
||||
export function registerUpdateCli(program: Command) {
|
||||
|
||||
Reference in New Issue
Block a user