Skip to content

Commit 939013b

Browse files
committed
fix more test baselines
1 parent cd98668 commit 939013b

File tree

4 files changed

+57
-28
lines changed

4 files changed

+57
-28
lines changed

test/dotnet-completions.Tests/snapshots/bash/DotnetCliSnapshotTests.VerifyCompletions.verified.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ _testhost_build() {
159159
COMPREPLY=( $(compgen -W "(${COMP_WORDS[0]} complete --position ${COMP_POINT} ${COMP_LINE} 2>/dev/null | tr '\n' ' ')" -- "$cur") )
160160
return
161161
;;
162+
--interactive)
163+
COMPREPLY=( $(compgen -W "False True" -- "$cur") )
164+
return
165+
;;
162166
--verbosity|-v)
163167
COMPREPLY=( $(compgen -W "d detailed diag diagnostic m minimal n normal q quiet" -- "$cur") )
164168
return
@@ -240,6 +244,10 @@ _testhost_clean() {
240244
COMPREPLY=( $(compgen -W "(${COMP_WORDS[0]} complete --position ${COMP_POINT} ${COMP_LINE} 2>/dev/null | tr '\n' ' ')" -- "$cur") )
241245
return
242246
;;
247+
--interactive)
248+
COMPREPLY=( $(compgen -W "False True" -- "$cur") )
249+
return
250+
;;
243251
--verbosity|-v)
244252
COMPREPLY=( $(compgen -W "d detailed diag diagnostic m minimal n normal q quiet" -- "$cur") )
245253
return
@@ -965,6 +973,10 @@ _testhost_pack() {
965973
fi
966974

967975
case $prev in
976+
--interactive)
977+
COMPREPLY=( $(compgen -W "False True" -- "$cur") )
978+
return
979+
;;
968980
--verbosity|-v)
969981
COMPREPLY=( $(compgen -W "d detailed diag diagnostic m minimal n normal q quiet" -- "$cur") )
970982
return
@@ -1135,6 +1147,10 @@ _testhost_publish() {
11351147
COMPREPLY=( $(compgen -W "(${COMP_WORDS[0]} complete --position ${COMP_POINT} ${COMP_LINE} 2>/dev/null | tr '\n' ' ')" -- "$cur") )
11361148
return
11371149
;;
1150+
--interactive)
1151+
COMPREPLY=( $(compgen -W "False True" -- "$cur") )
1152+
return
1153+
;;
11381154
--verbosity|-v)
11391155
COMPREPLY=( $(compgen -W "d detailed diag diagnostic m minimal n normal q quiet" -- "$cur") )
11401156
return
@@ -1260,6 +1276,10 @@ _testhost_restore() {
12601276
COMPREPLY=( $(compgen -W "d detailed diag diagnostic m minimal n normal q quiet" -- "$cur") )
12611277
return
12621278
;;
1279+
--interactive)
1280+
COMPREPLY=( $(compgen -W "False True" -- "$cur") )
1281+
return
1282+
;;
12631283
esac
12641284

12651285
COMPREPLY=( $(compgen -W "$opts" -- "$cur") )
@@ -1292,6 +1312,10 @@ _testhost_run() {
12921312
COMPREPLY=( $(compgen -W "(${COMP_WORDS[0]} complete --position ${COMP_POINT} ${COMP_LINE} 2>/dev/null | tr '\n' ' ')" -- "$cur") )
12931313
return
12941314
;;
1315+
--interactive)
1316+
COMPREPLY=( $(compgen -W "False True" -- "$cur") )
1317+
return
1318+
;;
12951319
--self-contained|--sc)
12961320
COMPREPLY=( $(compgen -W "False True" -- "$cur") )
12971321
return
@@ -1486,6 +1510,10 @@ _testhost_test() {
14861510
COMPREPLY=( $(compgen -W "(${COMP_WORDS[0]} complete --position ${COMP_POINT} ${COMP_LINE} 2>/dev/null | tr '\n' ' ')" -- "$cur") )
14871511
return
14881512
;;
1513+
--interactive)
1514+
COMPREPLY=( $(compgen -W "False True" -- "$cur") )
1515+
return
1516+
;;
14891517
--verbosity|-v)
14901518
COMPREPLY=( $(compgen -W "d detailed diag diagnostic m minimal n normal q quiet" -- "$cur") )
14911519
return

test/dotnet-completions.Tests/snapshots/zsh/DotnetCliSnapshotTests.VerifyCompletions.verified.zsh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ _testhost() {
2626
":: :_testhost_commands" \
2727
"*::: :->testhost" \
2828
&& ret=0
29-
local original_args="testhost ${line[@]}"
29+
local original_args="testhost ${line[@]}"
3030
case $state in
3131
(testhost)
3232
words=($line[1] "${words[@]}")
@@ -45,7 +45,7 @@ _testhost() {
4545
'-r=[]:RUNTIME_IDENTIFIER:->dotnet_dynamic_complete' \
4646
'--version-suffix=[Set the value of the \$(VersionSuffix) property to use when building the project.]:VERSION_SUFFIX: ' \
4747
'--no-restore[Do not restore the project before building.]' \
48-
'--interactive[Allows the command to stop and wait for user input or action (for example to complete authentication).]' \
48+
'--interactive=[Allows the command to stop and wait for user input or action (for example to complete authentication).]: :((False\:"False" True\:"True" ))' \
4949
'--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" ))' \
5050
'-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" ))' \
5151
'--debug[]' \
@@ -111,7 +111,7 @@ _testhost() {
111111
'-r=[]:RUNTIME_IDENTIFIER:->dotnet_dynamic_complete' \
112112
'--configuration=[The configuration to clean for. The default for most projects is '\''Debug'\''.]:CONFIGURATION:->dotnet_dynamic_complete' \
113113
'-c=[The configuration to clean for. The default for most projects is '\''Debug'\''.]:CONFIGURATION:->dotnet_dynamic_complete' \
114-
'--interactive[Allows the command to stop and wait for user input or action (for example to complete authentication).]' \
114+
'--interactive=[Allows the command to stop and wait for user input or action (for example to complete authentication).]: :((False\:"False" True\:"True" ))' \
115115
'--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" ))' \
116116
'-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" ))' \
117117
'--output=[The directory containing the build artifacts to clean.]:OUTPUT_DIR: ' \
@@ -526,7 +526,7 @@ _testhost() {
526526
'--serviceable[Set the serviceable flag in the package. See https\://aka.ms/nupkgservicing for more information.]' \
527527
'-s[Set the serviceable flag in the package. See https\://aka.ms/nupkgservicing for more information.]' \
528528
'--nologo[Do not display the startup banner or the copyright message.]' \
529-
'--interactive[Allows the command to stop and wait for user input or action (for example to complete authentication).]' \
529+
'--interactive=[Allows the command to stop and wait for user input or action (for example to complete authentication).]: :((False\:"False" True\:"True" ))' \
530530
'--no-restore[Do not restore the project before building.]' \
531531
'--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" ))' \
532532
'-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" ))' \
@@ -667,7 +667,7 @@ _testhost() {
667667
'--configuration=[The configuration to publish for. The default is '\''Release'\'' for NET 8.0 projects and above, but '\''Debug'\'' for older projects.]:CONFIGURATION:->dotnet_dynamic_complete' \
668668
'-c=[The configuration to publish for. The default is '\''Release'\'' for NET 8.0 projects and above, but '\''Debug'\'' for older projects.]:CONFIGURATION:->dotnet_dynamic_complete' \
669669
'--version-suffix=[Set the value of the \$(VersionSuffix) property to use when building the project.]:VERSION_SUFFIX: ' \
670-
'--interactive[Allows the command to stop and wait for user input or action (for example to complete authentication).]' \
670+
'--interactive=[Allows the command to stop and wait for user input or action (for example to complete authentication).]: :((False\:"False" True\:"True" ))' \
671671
'--no-restore[Do not restore the project before building.]' \
672672
'--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" ))' \
673673
'-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" ))' \
@@ -775,7 +775,7 @@ _testhost() {
775775
'--no-dependencies[Do not restore project-to-project references and only restore the specified project.]' \
776776
'--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" ))' \
777777
'-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" ))' \
778-
'--interactive[Allows the command to stop and wait for user input or action (for example to complete authentication).]' \
778+
'--interactive=[Allows the command to stop and wait for user input or action (for example to complete authentication).]: :((False\:"False" True\:"True" ))' \
779779
'--artifacts-path=[The artifacts path. All output from the project, including build, publish, and pack output, will go in subfolders under the specified path.]:ARTIFACTS_DIR: ' \
780780
'--use-lock-file[Enables project lock file to be generated and used with restore.]' \
781781
'--locked-mode[Don'\''t allow updating project lock file.]' \
@@ -811,7 +811,7 @@ _testhost() {
811811
'-lp=[The name of the launch profile (if any) to use when launching the application.]: : ' \
812812
'--no-launch-profile[Do not attempt to use launchSettings.json to configure the application.]' \
813813
'--no-build[Do not build the project before running. Implies --no-restore.]' \
814-
'--interactive[Allows the command to stop and wait for user input or action (for example to complete authentication).]' \
814+
'--interactive=[Allows the command to stop and wait for user input or action (for example to complete authentication).]: :((False\:"False" True\:"True" ))' \
815815
'--no-restore[Do not restore the project before building.]' \
816816
'--self-contained=[Publish the .NET runtime with your application so the runtime doesn'\''t need to be installed on the target machine. The default is '\''false.'\'' However, when targeting .NET 7 or lower, the default is '\''true'\'' if a runtime identifier is specified.]: :((False\:"False" True\:"True" ))' \
817817
'--sc=[Publish the .NET runtime with your application so the runtime doesn'\''t need to be installed on the target machine. The default is '\''false.'\'' However, when targeting .NET 7 or lower, the default is '\''true'\'' if a runtime identifier is specified.]: :((False\:"False" True\:"True" ))' \
@@ -959,7 +959,7 @@ _testhost() {
959959
'--runtime=[]:RUNTIME_IDENTIFIER:->dotnet_dynamic_complete' \
960960
'-r=[]:RUNTIME_IDENTIFIER:->dotnet_dynamic_complete' \
961961
'--no-restore[Do not restore the project before building.]' \
962-
'--interactive[Allows the command to stop and wait for user input or action (for example to complete authentication).]' \
962+
'--interactive=[Allows the command to stop and wait for user input or action (for example to complete authentication).]: :((False\:"False" True\:"True" ))' \
963963
'--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" ))' \
964964
'-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" ))' \
965965
'--arch=[The target architecture.]:ARCH: ' \

0 commit comments

Comments
 (0)