Skip to content

Commit fdc0161

Browse files
edvilmedsplaisted
authored andcommitted
Update Completion snapshots
1 parent dda7732 commit fdc0161

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1729,7 +1729,7 @@ _testhost_tool_run() {
17291729
prev="${COMP_WORDS[COMP_CWORD-1]}"
17301730
COMPREPLY=()
17311731

1732-
opts="--allow-roll-forward --from-source --configfile --source --add-source --verbosity --ignore-failed-sources --interactive --help"
1732+
opts="--allow-roll-forward --from-source --configfile --source --add-source --verbosity --interactive --yes --ignore-failed-sources --help"
17331733

17341734
if [[ $COMP_CWORD == "$1" ]]; then
17351735
COMPREPLY=( $(compgen -W "$opts" -- "$cur") )
@@ -1741,6 +1741,10 @@ _testhost_tool_run() {
17411741
COMPREPLY=( $(compgen -W "d detailed diag diagnostic m minimal n normal q quiet" -- "$cur") )
17421742
return
17431743
;;
1744+
--yes|-y)
1745+
COMPREPLY=( $(compgen -W "(${COMP_WORDS[0]} complete --position ${COMP_POINT} ${COMP_LINE} 2>/dev/null | tr '\n' ' ')" -- "$cur") )
1746+
return
1747+
;;
17441748
esac
17451749

17461750
COMPREPLY=( $(compgen -W "$opts" -- "$cur") )

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1063,8 +1063,10 @@ Register-ArgumentCompleter -Native -CommandName 'testhost' -ScriptBlock {
10631063
[CompletionResult]::new('--add-source', '--add-source', [CompletionResultType]::ParameterName, "Add an additional NuGet package source to use during installation.")
10641064
[CompletionResult]::new('--verbosity', '--verbosity', [CompletionResultType]::ParameterName, "Set the MSBuild verbosity level. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic].")
10651065
[CompletionResult]::new('--verbosity', '-v', [CompletionResultType]::ParameterName, "Set the MSBuild verbosity level. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic].")
1066-
[CompletionResult]::new('--ignore-failed-sources', '--ignore-failed-sources', [CompletionResultType]::ParameterName, "Treat package source failures as warnings.")
10671066
[CompletionResult]::new('--interactive', '--interactive', [CompletionResultType]::ParameterName, "Allows the command to stop and wait for user input or action (for example to complete authentication).")
1067+
[CompletionResult]::new('--yes', '--yes', [CompletionResultType]::ParameterName, "Overrides confirmation prompt with `"yes`" value. ")
1068+
[CompletionResult]::new('--yes', '-y', [CompletionResultType]::ParameterName, "Overrides confirmation prompt with `"yes`" value. ")
1069+
[CompletionResult]::new('--ignore-failed-sources', '--ignore-failed-sources', [CompletionResultType]::ParameterName, "Treat package source failures as warnings.")
10681070
[CompletionResult]::new('--help', '--help', [CompletionResultType]::ParameterName, "Show command line help.")
10691071
[CompletionResult]::new('--help', '-h', [CompletionResultType]::ParameterName, "Show command line help.")
10701072
)

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1133,8 +1133,10 @@ _testhost() {
11331133
'*--add-source=[Add an additional NuGet package source to use during installation.]:ADDSOURCE: ' \
11341134
'--verbosity=[Set the MSBuild verbosity level. Allowed values are q\[uiet\], m\[inimal\], n\[ormal\], d\[etailed\], and diag\[nostic\].]:LEVEL:((d\:"d" detailed\:"detailed" diag\:"diag" diagnostic\:"diagnostic" m\:"m" minimal\:"minimal" n\:"n" normal\:"normal" q\:"q" quiet\:"quiet" ))' \
11351135
'-v=[Set the MSBuild verbosity level. Allowed values are q\[uiet\], m\[inimal\], n\[ormal\], d\[etailed\], and diag\[nostic\].]:LEVEL:((d\:"d" detailed\:"detailed" diag\:"diag" diagnostic\:"diagnostic" m\:"m" minimal\:"minimal" n\:"n" normal\:"normal" q\:"q" quiet\:"quiet" ))' \
1136-
'--ignore-failed-sources[Treat package source failures as warnings.]' \
11371136
'--interactive[Allows the command to stop and wait for user input or action (for example to complete authentication).]' \
1137+
'--yes[Overrides confirmation prompt with \"yes\" value. ]' \
1138+
'-y[Overrides confirmation prompt with \"yes\" value. ]' \
1139+
'--ignore-failed-sources[Treat package source failures as warnings.]' \
11381140
'--help[Show command line help.]' \
11391141
'-h[Show command line help.]' \
11401142
':commandName -- The command name of the tool to run.: ' \

0 commit comments

Comments
 (0)