File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import {
1414 selectTool ,
1515 updateOrInstallTool ,
1616} from "../../tools/tools-console.ts" ;
17- import { installTool } from "../../tools/tools.ts" ;
17+ import { installableToolNames , installTool } from "../../tools/tools.ts" ;
1818import { resolveCompatibleArgs } from "../remove/cmd.ts" ;
1919
2020export const installCommand = new Command ( )
@@ -36,14 +36,18 @@ export const installCommand = new Command()
3636 "Update system path when a tool is installed" ,
3737 )
3838 . description (
39- " Installs a global dependency (TinyTex or Chromium)." ,
39+ ` Installs a global dependency (${ installableToolNames ( ) . join ( ", " ) } ).` ,
4040 )
4141 . example (
4242 "Install TinyTeX" ,
4343 "quarto install tinytex" ,
4444 )
4545 . example (
46- "Install Chromium" ,
46+ "Install Chrome Headless Shell" ,
47+ "quarto install chrome-headless-shell" ,
48+ )
49+ . example (
50+ "Install Chromium (legacy)" ,
4751 "quarto install chromium" ,
4852 )
4953 . example (
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import {
1313 removeTool ,
1414 selectTool ,
1515} from "../../tools/tools-console.ts" ;
16+ import { installableToolNames } from "../../tools/tools.ts" ;
1617
1718export const uninstallCommand = new Command ( )
1819 . name ( "uninstall" )
@@ -26,12 +27,20 @@ export const uninstallCommand = new Command()
2627 "Update system path when a tool is installed" ,
2728 )
2829 . description (
29- " Removes an extension." ,
30+ ` Removes an extension or global dependency ( ${ installableToolNames ( ) . join ( ", " ) } ).` ,
3031 )
3132 . example (
3233 "Remove extension using name" ,
3334 "quarto remove <extension-name>" ,
3435 )
36+ . example (
37+ "Uninstall Chrome Headless Shell" ,
38+ "quarto uninstall chrome-headless-shell" ,
39+ )
40+ . example (
41+ "Uninstall Chromium (legacy)" ,
42+ "quarto uninstall chromium" ,
43+ )
3544 . action (
3645 async (
3746 options : { prompt ?: boolean ; updatePath ?: boolean } ,
Original file line number Diff line number Diff line change @@ -47,7 +47,11 @@ export const updateCommand = new Command()
4747 "quarto update tool tinytex" ,
4848 )
4949 . example (
50- "Update Chromium" ,
50+ "Update Chrome Headless Shell" ,
51+ "quarto update tool chrome-headless-shell" ,
52+ )
53+ . example (
54+ "Update Chromium (legacy)" ,
5155 "quarto update tool chromium" ,
5256 )
5357 . example (
Original file line number Diff line number Diff line change @@ -64,6 +64,10 @@ export function installableTools(): string[] {
6464 return Object . keys ( kInstallableTools ) ;
6565}
6666
67+ export function installableToolNames ( ) : string [ ] {
68+ return Object . values ( kInstallableTools ) . map ( ( tool ) => tool . name ) ;
69+ }
70+
6771export async function printToolInfo ( name : string ) {
6872 name = name || "" ;
6973 // Run the install
You can’t perform that action at this time.
0 commit comments