feat: complete --filter and --force on the first .install argument
The unified install parser accepts flags in any position, so the first-argument completion list now offers all four flags instead of only --git-host and --help.
This commit is contained in:
@@ -3304,6 +3304,14 @@ impl RequestContext {
|
|||||||
AssetCategory::NAMES.iter().map(|s| s.to_string()).collect();
|
AssetCategory::NAMES.iter().map(|s| s.to_string()).collect();
|
||||||
names.extend(installed_bundle_names());
|
names.extend(installed_bundle_names());
|
||||||
let mut values = super::map_completion_values(names);
|
let mut values = super::map_completion_values(names);
|
||||||
|
values.push((
|
||||||
|
"--filter".to_string(),
|
||||||
|
Some("Restrict a remote install to one category".to_string()),
|
||||||
|
));
|
||||||
|
values.push((
|
||||||
|
"--force".to_string(),
|
||||||
|
Some("Overwrite all conflicts without prompting".to_string()),
|
||||||
|
));
|
||||||
values.push((
|
values.push((
|
||||||
"--git-host".to_string(),
|
"--git-host".to_string(),
|
||||||
Some("Host the owner/repo shorthand expands against".to_string()),
|
Some("Host the owner/repo shorthand expands against".to_string()),
|
||||||
|
|||||||
Reference in New Issue
Block a user