Skip to content

Commit 5bde81c

Browse files
cdervclaude
andcommitted
Use registered tool list for update/remove shortcut resolution
`quarto update chrome-headless-shell` was treated as an extension name because `resolveCompatibleArgs()` only recognized `tinytex` and `chromium` as tool shortcuts. Replace hardcoded check with `installableTools()` so all registered tools (including `chrome-headless-shell` and `verapdf`) are recognized automatically. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent aa4b99d commit 5bde81c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/command/remove/cmd.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import {
2121
removeTool,
2222
selectTool,
2323
} from "../../tools/tools-console.ts";
24+
import { installableTools } from "../../tools/tools.ts";
2425
import { notebookContext } from "../../render/notebook/notebook-context.ts";
2526
import { signalCommandFailure } from "../utils.ts";
2627

@@ -172,7 +173,7 @@ export const resolveCompatibleArgs = (
172173
return {
173174
action: "extension",
174175
};
175-
} else if (extname === "tinytex" || extname === "chromium") {
176+
} else if (installableTools().includes(extname)) {
176177
return {
177178
action: "tool",
178179
name: args[0],

0 commit comments

Comments
 (0)