mirror of
https://github.com/iflytek/skillhub.git
synced 2026-10-04 02:34:22 +00:00
fix(cli): stop spinner before version selection to prevent UI conflict
The ora spinner was still running during p.select() interactive prompt, causing the spinner to continuously overwrite the terminal and block the version selection UI. The user would see "Fetching..." stuck until pressing Enter. Stop spinner before p.select() and restart after selection completes.
This commit is contained in:
parent
e93adaaaaa
commit
90809c47ab
1 changed files with 3 additions and 0 deletions
|
|
@ -260,6 +260,8 @@ async function installFromRegistry(slug: string, opts: Record<string, string | s
|
|||
}
|
||||
} else {
|
||||
// Interactive: show version selection
|
||||
spinner.stop();
|
||||
|
||||
const picked = await p.select({
|
||||
message: "Select version",
|
||||
options: versions.map((v) => ({
|
||||
|
|
@ -275,6 +277,7 @@ async function installFromRegistry(slug: string, opts: Record<string, string | s
|
|||
}
|
||||
|
||||
selectedVersion = picked as string;
|
||||
spinner.start("Downloading");
|
||||
}
|
||||
|
||||
const baseUrl = config.registry.replace(/\/$/, "");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue