Skip to content

Commit 4bbafef

Browse files
committed
Update CLI snapshots
1 parent cb66e95 commit 4bbafef

File tree

3 files changed

+16
-12
lines changed

3 files changed

+16
-12
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1792,7 +1792,7 @@ _testhost_tool_execute() {
17921792
prev="${COMP_WORDS[COMP_CWORD-1]}"
17931793
COMPREPLY=()
17941794

1795-
opts="--version --allow-roll-forward --prerelease --configfile --source --add-source --ignore-failed-sources --interactive --yes --verbosity --help"
1795+
opts="--version --yes --interactive --allow-roll-forward --prerelease --configfile --source --add-source --disable-parallel --ignore-failed-sources --no-http-cache --verbosity --help"
17961796
opts="$opts $(${COMP_WORDS[0]} complete --position ${COMP_POINT} ${COMP_LINE} 2>/dev/null | tr '\n' ' ')"
17971797

17981798
if [[ $COMP_CWORD == "$1" ]]; then

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -959,8 +959,8 @@ Register-ArgumentCompleter -Native -CommandName 'testhost' -ScriptBlock {
959959
[CompletionResult]::new('run', 'run', [CompletionResultType]::ParameterValue, "Run a local tool. Note that this command cannot be used to run a global tool. ")
960960
[CompletionResult]::new('search', 'search', [CompletionResultType]::ParameterValue, "Search dotnet tools in nuget.org")
961961
[CompletionResult]::new('restore', 'restore', [CompletionResultType]::ParameterValue, "Restore tools defined in the local tool manifest.")
962-
[CompletionResult]::new('execute', 'execute', [CompletionResultType]::ParameterValue, "Execute a tool command from source")
963-
[CompletionResult]::new('execute', 'exec', [CompletionResultType]::ParameterValue, "Execute a tool command from source")
962+
[CompletionResult]::new('execute', 'execute', [CompletionResultType]::ParameterValue, "Executes a tool from source without permanently installing it.")
963+
[CompletionResult]::new('execute', 'exec', [CompletionResultType]::ParameterValue, "Executes a tool from source without permanently installing it.")
964964
)
965965
$completions += $staticCompletions
966966
break
@@ -1097,15 +1097,17 @@ Register-ArgumentCompleter -Native -CommandName 'testhost' -ScriptBlock {
10971097
'testhost;tool;execute' {
10981098
$staticCompletions = @(
10991099
[CompletionResult]::new('--version', '--version', [CompletionResultType]::ParameterName, "The version of the tool package to install.")
1100+
[CompletionResult]::new('--yes', '--yes', [CompletionResultType]::ParameterName, "Suppresses confirmation prompt with `"yes`" value.")
1101+
[CompletionResult]::new('--yes', '-y', [CompletionResultType]::ParameterName, "Suppresses confirmation prompt with `"yes`" value.")
1102+
[CompletionResult]::new('--interactive', '--interactive', [CompletionResultType]::ParameterName, "Allows the command to stop and wait for user input or action (for example to complete authentication).")
11001103
[CompletionResult]::new('--allow-roll-forward', '--allow-roll-forward', [CompletionResultType]::ParameterName, "Allow a .NET tool to roll forward to newer versions of the .NET runtime if the runtime it targets isn`'t installed.")
11011104
[CompletionResult]::new('--prerelease', '--prerelease', [CompletionResultType]::ParameterName, "Include pre-release packages.")
11021105
[CompletionResult]::new('--configfile', '--configfile', [CompletionResultType]::ParameterName, "The NuGet configuration file to use.")
11031106
[CompletionResult]::new('--source', '--source', [CompletionResultType]::ParameterName, "Replace all NuGet package sources to use during installation with these.")
11041107
[CompletionResult]::new('--add-source', '--add-source', [CompletionResultType]::ParameterName, "Add an additional NuGet package source to use during installation.")
1108+
[CompletionResult]::new('--disable-parallel', '--disable-parallel', [CompletionResultType]::ParameterName, "Prevent restoring multiple projects in parallel.")
11051109
[CompletionResult]::new('--ignore-failed-sources', '--ignore-failed-sources', [CompletionResultType]::ParameterName, "Treat package source failures as warnings.")
1106-
[CompletionResult]::new('--interactive', '--interactive', [CompletionResultType]::ParameterName, "Allows the command to stop and wait for user input or action (for example to complete authentication).")
1107-
[CompletionResult]::new('--yes', '--yes', [CompletionResultType]::ParameterName, "Overrides confirmation prompt with `"yes`" value. ")
1108-
[CompletionResult]::new('--yes', '-y', [CompletionResultType]::ParameterName, "Overrides confirmation prompt with `"yes`" value. ")
1110+
[CompletionResult]::new('--no-http-cache', '--no-http-cache', [CompletionResultType]::ParameterName, "Do not cache packages and http requests.")
11091111
[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].")
11101112
[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].")
11111113
[CompletionResult]::new('--help', '--help', [CompletionResultType]::ParameterName, "Show command line help.")

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1130,7 +1130,7 @@ _testhost() {
11301130
'--help[Show command line help.]' \
11311131
'-h[Show command line help.]' \
11321132
':commandName -- The command name of the tool to run.: ' \
1133-
'*::toolArguments -- arguments forwarded to the tool: ' \
1133+
'*::toolArguments -- Arguments forwarded to the tool: ' \
11341134
&& ret=0
11351135
;;
11361136
(search)
@@ -1162,21 +1162,23 @@ _testhost() {
11621162
(execute)
11631163
_arguments "${_arguments_options[@]}" : \
11641164
'--version=[The version of the tool package to install.]:VERSION: ' \
1165+
'--yes[Suppresses confirmation prompt with \"yes\" value.]' \
1166+
'-y[Suppresses confirmation prompt with \"yes\" value.]' \
1167+
'--interactive[Allows the command to stop and wait for user input or action (for example to complete authentication).]' \
11651168
'--allow-roll-forward[Allow a .NET tool to roll forward to newer versions of the .NET runtime if the runtime it targets isn'\''t installed.]' \
11661169
'--prerelease[Include pre-release packages.]' \
11671170
'--configfile=[The NuGet configuration file to use.]:FILE: ' \
11681171
'*--source=[Replace all NuGet package sources to use during installation with these.]:SOURCE: ' \
11691172
'*--add-source=[Add an additional NuGet package source to use during installation.]:ADDSOURCE: ' \
1173+
'--disable-parallel[Prevent restoring multiple projects in parallel.]' \
11701174
'--ignore-failed-sources[Treat package source failures as warnings.]' \
1171-
'--interactive[Allows the command to stop and wait for user input or action (for example to complete authentication).]' \
1172-
'--yes[Overrides confirmation prompt with \"yes\" value. ]' \
1173-
'-y[Overrides confirmation prompt with \"yes\" value. ]' \
1175+
'--no-http-cache[Do not cache packages and http requests.]' \
11741176
'--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" ))' \
11751177
'-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" ))' \
11761178
'--help[Show command line help.]' \
11771179
'-h[Show command line help.]' \
11781180
':packageId -- Package reference in the form of a package identifier like '\''Newtonsoft.Json'\'' or package identifier and version separated by '\''@'\'' like '\''[email protected]'\''.:->dotnet_dynamic_complete' \
1179-
'*::commandArguments -- arguments forwarded to the tool: ' \
1181+
'*::commandArguments -- Arguments forwarded to the tool: ' \
11801182
&& ret=0
11811183
case $state in
11821184
(dotnet_dynamic_complete)
@@ -1815,7 +1817,7 @@ _testhost__tool_commands() {
18151817
'run:Run a local tool. Note that this command cannot be used to run a global tool. ' \
18161818
'search:Search dotnet tools in nuget.org' \
18171819
'restore:Restore tools defined in the local tool manifest.' \
1818-
'execute:Execute a tool command from source' \
1820+
'execute:Executes a tool from source without permanently installing it.' \
18191821
)
18201822
_describe -t commands 'testhost tool commands' commands "$@"
18211823
}

0 commit comments

Comments
 (0)