Skip to content

Commit 123cc5f

Browse files
authored
Fix winget show completions (#1091)
Update `winget show` completions according to official docs at https://learn.microsoft.com/en-us/windows/package-manager/winget/show Sort flags like official documentation. Remove multiple flags which seemingly come from `winget install`; presumably a copy-paste error when originally implementing this command.
1 parent 0b4a1a6 commit 123cc5f

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

custom-completions/winget/winget-completions.nu

+17-8
Original file line numberDiff line numberDiff line change
@@ -172,24 +172,33 @@ export alias "winget add" = winget install
172172
export extern "winget show" [
173173
pos_query?: string,
174174
--query(-q): string, # The query used to search for a package
175+
--manifest(-m): string # The path to the manifest of the application to show
175176
--id: string, # Filter results by id
176177
--name: string, # Filter results by name
177178
--moniker: string, # Filter results by moniker
178179
--version(-v): string, # Use the specified version; default is the latest version
179180
--source(-s): string@"nu-complete winget install source", # Find package using the specified source
180-
--scope: string@"nu-complete winget install scope", # Select install scope (user or machine). Doesn't work rn, use ^winget
181181
--exact(-e), # Find package using exact match
182-
--interactive(-i), # Request interactive installation; user input may be needed
183-
--silent(-h), # Request silent installation
182+
--scope: string@"nu-complete winget install scope", # Select install scope (user or machine). Doesn't work rn, use ^winget
183+
--architecture(-a): string # Select the architecture to show
184+
--installer-type: string # Select the installer type to show
184185
--locale: string@"nu-complete winget install locale", # Locale to use (BCP47 format)
185-
--log(-o): path, # Log location (if supported)
186-
--override: string, # Override arguments to be passed on to the installer
187-
--location(-l): path, # Location to install to (if supported)
188-
--force, # Override the installer hash check
189-
--accept_package_agreements, # Accept all licence agreements for packages
186+
--versions # Show available versions of the application
190187
--header: string, # Optional Windows-Package-Manager REST source HTTP header
188+
--authentication-mode: string # Specify authentication window preference (silent, silentPreferred or interactive)
189+
--authentication-account: string # Specify the account to be used for authentication
191190
--accept_source_agreements, # Accept all source agreements during source operations
192191
--help(-?), # Display the help for this command
192+
--wait # Prompts the user to press any key before exiting
193+
--logs # Open the default logs location
194+
--open-logs # Open the default logs location
195+
--verbose # Used to override the logging setting and create a verbose log
196+
--verbose-logs # Used to override the logging setting and create a verbose log
197+
--nowarn # Suppresses warning outputs.
198+
--ignore-warnings # Suppresses warning outputs
199+
--disable-interactivity # Disable interactive prompts
200+
--proxy # Set a proxy to use for this execution
201+
--no-proxy # Disable the use of proxy for this execution
193202
]
194203
export alias "winget view" = winget show
195204

0 commit comments

Comments
 (0)