Skip to content

Commit 2d10a8f

Browse files
committed
update completions snapshot
1 parent dd6e894 commit 2d10a8f

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

test/dotnet.Tests/CompletionTests/snapshots/bash/DotnetCliSnapshotTests.VerifyCompletions.verified.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,14 +1137,18 @@ _testhost_package_update() {
11371137
prev="${COMP_WORDS[COMP_CWORD-1]}"
11381138
COMPREPLY=()
11391139

1140-
opts="--project --interactive --verbosity --help"
1140+
opts="--project --vulnerable --interactive --verbosity --help"
11411141

11421142
if [[ $COMP_CWORD == "$1" ]]; then
11431143
COMPREPLY=( $(compgen -W "$opts" -- "$cur") )
11441144
return
11451145
fi
11461146

11471147
case $prev in
1148+
--vulnerable)
1149+
COMPREPLY=( $(compgen -W "False True" -- "$cur") )
1150+
return
1151+
;;
11481152
--interactive)
11491153
COMPREPLY=( $(compgen -W "False True" -- "$cur") )
11501154
return
@@ -2305,4 +2309,4 @@ _testhost_completions_script() {
23052309

23062310

23072311

2308-
complete -F _testhost testhost
2312+
complete -F _testhost testhost

test/dotnet.Tests/CompletionTests/snapshots/pwsh/DotnetCliSnapshotTests.VerifyCompletions.verified.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -671,6 +671,7 @@ Register-ArgumentCompleter -Native -CommandName 'testhost' -ScriptBlock {
671671
'testhost;package;update' {
672672
$staticCompletions = @(
673673
[CompletionResult]::new('--project', '--project', [CompletionResultType]::ParameterName, "Path to a project or solution file, or a directory.")
674+
[CompletionResult]::new('--vulnerable', '--vulnerable', [CompletionResultType]::ParameterName, "Upgrade packages with known vulnerabilities.")
674675
[CompletionResult]::new('--interactive', '--interactive', [CompletionResultType]::ParameterName, "Allows the command to stop and wait for user input or action (for example to complete authentication).")
675676
[CompletionResult]::new('--verbosity', '--verbosity', [CompletionResultType]::ParameterName, "Set the verbosity level of the command. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic].")
676677
[CompletionResult]::new('--verbosity', '-v', [CompletionResultType]::ParameterName, "Set the verbosity level of the command. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic].")

test/dotnet.Tests/CompletionTests/snapshots/zsh/DotnetCliSnapshotTests.VerifyCompletions.verified.zsh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,7 @@ _testhost() {
669669
(update)
670670
_arguments "${_arguments_options[@]}" : \
671671
'--project=[Path to a project or solution file, or a directory.]: : ' \
672+
'--vulnerable=[Upgrade packages with known vulnerabilities.]: :((False\:"False" True\:"True" ))' \
672673
'--interactive=[Allows the command to stop and wait for user input or action (for example to complete authentication).]: :((False\:"False" True\:"True" ))' \
673674
'--verbosity=[Set the verbosity level of the command. Allowed values are q\[uiet\], m\[inimal\], n\[ormal\], d\[etailed\], and diag\[nostic\].]: :((d\:"d" detailed\:"detailed" diag\:"diag" diagnostic\:"diagnostic" m\:"m" minimal\:"minimal" n\:"n" normal\:"normal" q\:"q" quiet\:"quiet" ))' \
674675
'-v=[Set the verbosity level of the command. Allowed values are q\[uiet\], m\[inimal\], n\[ormal\], d\[etailed\], and diag\[nostic\].]: :((d\:"d" detailed\:"detailed" diag\:"diag" diagnostic\:"diagnostic" m\:"m" minimal\:"minimal" n\:"n" normal\:"normal" q\:"q" quiet\:"quiet" ))' \

0 commit comments

Comments
 (0)