diff --git a/news/changelog-1.9.md b/news/changelog-1.9.md index 570473d90d7..5996e470f2e 100644 --- a/news/changelog-1.9.md +++ b/news/changelog-1.9.md @@ -136,3 +136,4 @@ All changes included in 1.9: - ([#13856](https://github.com/quarto-dev/quarto-cli/issues/13856)): Add code annotation support for Typst and Observable.js code blocks. (author: @mcanouil) - ([#13890](https://github.com/quarto-dev/quarto-cli/issues/13890)): Fix render failure when using `embed-resources: true` with input path through a symlinked directory. The cleanup now resolves symlinks before comparing paths. - ([#13907](https://github.com/quarto-dev/quarto-cli/issues/13907)): Ignore AI assistant configuration files (`CLAUDE.md`, `AGENTS.md`) when scanning for project input files and in extension templates, similar to how `README.md` is handled. +- ([#13935](https://github.com/quarto-dev/quarto-cli/issues/13935)): Fix `quarto install`, `quarto update`, and `quarto uninstall` interactive tool selection. diff --git a/src/tools/tools-console.ts b/src/tools/tools-console.ts index 78f4b634ab4..bc950cc8a73 100644 --- a/src/tools/tools-console.ts +++ b/src/tools/tools-console.ts @@ -4,7 +4,7 @@ * Copyright (C) 2021-2022 Posit Software, PBC */ import * as colors from "fmt/colors"; -import { Confirm, Select } from "cliffy/prompt/mod.ts"; +import { Confirm, prompt, Select } from "cliffy/prompt/mod.ts"; import { Table } from "cliffy/table/mod.ts"; import { info, warning } from "../deno_ral/log.ts"; @@ -237,7 +237,8 @@ export async function selectTool( } }; - const toolTarget: string = (await Select.prompt({ + const result = await prompt([{ + name: "tool", message: `Select a tool to ${action}`, options: toolsInfo.map((toolInfo) => { return { @@ -248,6 +249,7 @@ export async function selectTool( : !toolInfo.installed, }; }), - })).value; - return toolTarget; + type: Select, + }]); + return result.tool; }