Skip to content

Commit 49264ed

Browse files
committed
Update completion test snapshots.
1 parent f36c2ec commit 49264ed

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

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

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1137,13 +1137,24 @@ _testhost_package_update() {
11371137
prev="${COMP_WORDS[COMP_CWORD-1]}"
11381138
COMPREPLY=()
11391139

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

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

1147+
case $prev in
1148+
--interactive)
1149+
COMPREPLY=( $(compgen -W "False True" -- "$cur") )
1150+
return
1151+
;;
1152+
--verbosity|-v)
1153+
COMPREPLY=( $(compgen -W "d detailed diag diagnostic m minimal n normal q quiet" -- "$cur") )
1154+
return
1155+
;;
1156+
esac
1157+
11471158
COMPREPLY=( $(compgen -W "$opts" -- "$cur") )
11481159
}
11491160

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -670,6 +670,9 @@ Register-ArgumentCompleter -Native -CommandName 'testhost' -ScriptBlock {
670670
'testhost;package;update' {
671671
$staticCompletions = @(
672672
[CompletionResult]::new('--project', '--project', [CompletionResultType]::ParameterName, "Path to a project or solution file, or a directory.")
673+
[CompletionResult]::new('--interactive', '--interactive', [CompletionResultType]::ParameterName, "Allow the command to block and require manual action for operations like authentication.")
674+
[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].")
675+
[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].")
673676
[CompletionResult]::new('--help', '--help', [CompletionResultType]::ParameterName, "Show command line help.")
674677
[CompletionResult]::new('--help', '-h', [CompletionResultType]::ParameterName, "Show command line help.")
675678
)

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -668,6 +668,9 @@ _testhost() {
668668
(update)
669669
_arguments "${_arguments_options[@]}" : \
670670
'--project=[Path to a project or solution file, or a directory.]: : ' \
671+
'--interactive=[Allow the command to block and require manual action for operations like authentication.]: :((False\:"False" True\:"True" ))' \
672+
'--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" ))' \
673+
'-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" ))' \
671674
'--help[Show command line help.]' \
672675
'-h[Show command line help.]' \
673676
'*::packages -- Package reference in the form of a package identifier like '\''Newtonsoft.Json'\'' or package identifier and version separated by '\''@'\'' like '\''[email protected]'\''.: ' \

0 commit comments

Comments
 (0)