You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[CompletionResult]::new('run','run', [CompletionResultType]::ParameterValue,"Run a local tool. Note that this command cannot be used to run a global tool. ")
960
960
[CompletionResult]::new('search','search', [CompletionResultType]::ParameterValue,"Search dotnet tools in nuget.org")
961
961
[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")
[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.")
1060
-
[CompletionResult]::new('--from-source','--from-source', [CompletionResultType]::ParameterName,"Executes a tool from source without permanently installing it. ")
1061
-
[CompletionResult]::new('--configfile','--configfile', [CompletionResultType]::ParameterName,"The NuGet configuration file to use.")
1062
-
[CompletionResult]::new('--source','--source', [CompletionResultType]::ParameterName,"Replace all NuGet package sources to use during installation with these.")
1063
-
[CompletionResult]::new('--add-source','--add-source', [CompletionResultType]::ParameterName,"Add an additional NuGet package source to use during installation.")
1064
-
[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].")
1065
-
[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('--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.")
1070
1062
[CompletionResult]::new('--help','--help', [CompletionResultType]::ParameterName,"Show command line help.")
1071
1063
[CompletionResult]::new('--help','-h', [CompletionResultType]::ParameterName,"Show command line help.")
[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.")
[CompletionResult]::new('--configfile','--configfile', [CompletionResultType]::ParameterName,"The NuGet configuration file to use.")
1102
+
[CompletionResult]::new('--source','--source', [CompletionResultType]::ParameterName,"Replace all NuGet package sources to use during installation with these.")
1103
+
[CompletionResult]::new('--add-source','--add-source', [CompletionResultType]::ParameterName,"Add an additional NuGet package source to use during installation.")
1104
+
[CompletionResult]::new('--ignore-failed-sources','--ignore-failed-sources', [CompletionResultType]::ParameterName,"Treat package source failures as warnings.")
1105
+
[CompletionResult]::new('--interactive','--interactive', [CompletionResultType]::ParameterName,"Allows the command to stop and wait for user input or action (for example to complete authentication).")
1106
+
[CompletionResult]::new('--yes','--yes', [CompletionResultType]::ParameterName,"Overrides confirmation prompt with `"yes`" value. ")
1107
+
[CompletionResult]::new('--yes','-y', [CompletionResultType]::ParameterName,"Overrides confirmation prompt with `"yes`" value. ")
1108
+
[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].")
1109
+
[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].")
1110
+
[CompletionResult]::new('--help','--help', [CompletionResultType]::ParameterName,"Show command line help.")
1111
+
[CompletionResult]::new('--help','-h', [CompletionResultType]::ParameterName,"Show command line help.")
Copy file name to clipboardExpand all lines: test/dotnet.Tests/CompletionTests/snapshots/zsh/DotnetCliSnapshotTests.VerifyCompletions.verified.zsh
+26-10Lines changed: 26 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -1127,16 +1127,6 @@ _testhost() {
1127
1127
(run)
1128
1128
_arguments "${_arguments_options[@]}": \
1129
1129
'--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.]' \
1130
-
'--from-source[Executes a tool from source without permanently installing it. ]' \
1131
-
'--configfile=[The NuGet configuration file to use.]:FILE: ' \
1132
-
'*--source=[Replace all NuGet package sources to use during installation with these.]:SOURCE: ' \
1133
-
'*--add-source=[Add an additional NuGet package source to use during installation.]:ADDSOURCE: ' \
1134
-
'--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" ))' \
1135
-
'-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
-
'--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.]' \
1140
1130
'--help[Show command line help.]' \
1141
1131
'-h[Show command line help.]' \
1142
1132
':commandName -- The command name of the tool to run.: ' \
@@ -1169,6 +1159,25 @@ _testhost() {
1169
1159
'-h[Show command line help.]' \
1170
1160
&& ret=0
1171
1161
;;
1162
+
(execute)
1163
+
_arguments "${_arguments_options[@]}": \
1164
+
'--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.]' \
1165
+
'--prerelease[Include pre-release packages.]' \
1166
+
'--configfile=[The NuGet configuration file to use.]:FILE: ' \
1167
+
'*--source=[Replace all NuGet package sources to use during installation with these.]:SOURCE: ' \
1168
+
'*--add-source=[Add an additional NuGet package source to use during installation.]:ADDSOURCE: ' \
1169
+
'--ignore-failed-sources[Treat package source failures as warnings.]' \
1170
+
'--interactive[Allows the command to stop and wait for user input or action (for example to complete authentication).]' \
1171
+
'--yes[Overrides confirmation prompt with \"yes\" value. ]' \
1172
+
'-y[Overrides confirmation prompt with \"yes\" value. ]' \
1173
+
'--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" ))' \
1174
+
'-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" ))' \
1175
+
'--help[Show command line help.]' \
1176
+
'-h[Show command line help.]' \
1177
+
':packageId -- Package reference in the form of a package identifier like '\''Newtonsoft.Json'\'' or package identifier and version separated by '\''@'\'' like '\''[email protected]'\''.: ' \
1178
+
'*::commandArguments -- arguments forwarded to the tool: ' \
0 commit comments