Skip to content

Commit ee41f19

Browse files
committed
Update completions
1 parent 630744c commit ee41f19

File tree

4 files changed

+25
-1
lines changed

4 files changed

+25
-1
lines changed

src/Cli/dotnet/Commands/Tool/Run/ToolRunFromSourceCommand.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ public override int Execute()
5757

5858
CommandSpec commandSpec = MuxerCommandSpecMaker.CreatePackageCommandSpecUsingMuxer(toolPackage.Command.Executable.ToString(), _forwardArguments);
5959
var command = CommandFactoryUsingResolver.Create(commandSpec);
60+
61+
Console.WriteLine('-' * Console.WindowWidth);
62+
6063
var result = command.Execute();
6164
return result.ExitCode;
6265
}

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1719,13 +1719,20 @@ _testhost_tool_run() {
17191719
prev="${COMP_WORDS[COMP_CWORD-1]}"
17201720
COMPREPLY=()
17211721

1722-
opts="--allow-roll-forward --from-source --help"
1722+
opts="--allow-roll-forward --from-source --configfile --source --add-source --verbosity --ignore-failed-sources --interactive --help"
17231723

17241724
if [[ $COMP_CWORD == "$1" ]]; then
17251725
COMPREPLY=( $(compgen -W "$opts" -- "$cur") )
17261726
return
17271727
fi
17281728

1729+
case $prev in
1730+
--verbosity|-v)
1731+
COMPREPLY=( $(compgen -W "d detailed diag diagnostic m minimal n normal q quiet" -- "$cur") )
1732+
return
1733+
;;
1734+
esac
1735+
17291736
COMPREPLY=( $(compgen -W "$opts" -- "$cur") )
17301737
}
17311738

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,6 +1047,13 @@ Register-ArgumentCompleter -Native -CommandName 'testhost' -ScriptBlock {
10471047
$staticCompletions = @(
10481048
[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.")
10491049
[CompletionResult]::new('--from-source', '--from-source', [CompletionResultType]::ParameterName, "Executes a tool from source without permanently installing it. ")
1050+
[CompletionResult]::new('--configfile', '--configfile', [CompletionResultType]::ParameterName, "The NuGet configuration file to use.")
1051+
[CompletionResult]::new('--source', '--source', [CompletionResultType]::ParameterName, "Replace all NuGet package sources to use during installation with these.")
1052+
[CompletionResult]::new('--add-source', '--add-source', [CompletionResultType]::ParameterName, "Add an additional NuGet package source to use during installation.")
1053+
[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].")
1054+
[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].")
1055+
[CompletionResult]::new('--ignore-failed-sources', '--ignore-failed-sources', [CompletionResultType]::ParameterName, "Treat package source failures as warnings.")
1056+
[CompletionResult]::new('--interactive', '--interactive', [CompletionResultType]::ParameterName, "Allows the command to stop and wait for user input or action (for example to complete authentication).")
10501057
[CompletionResult]::new('--help', '--help', [CompletionResultType]::ParameterName, "Show command line help.")
10511058
[CompletionResult]::new('--help', '-h', [CompletionResultType]::ParameterName, "Show command line help.")
10521059
)

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1105,6 +1105,13 @@ _testhost() {
11051105
_arguments "${_arguments_options[@]}" : \
11061106
'--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.]' \
11071107
'--from-source[Executes a tool from source without permanently installing it. ]' \
1108+
'--configfile=[The NuGet configuration file to use.]:FILE: ' \
1109+
'*--source=[Replace all NuGet package sources to use during installation with these.]:SOURCE: ' \
1110+
'*--add-source=[Add an additional NuGet package source to use during installation.]:ADDSOURCE: ' \
1111+
'--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" ))' \
1112+
'-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" ))' \
1113+
'--ignore-failed-sources[Treat package source failures as warnings.]' \
1114+
'--interactive[Allows the command to stop and wait for user input or action (for example to complete authentication).]' \
11081115
'--help[Show command line help.]' \
11091116
'-h[Show command line help.]' \
11101117
':commandName -- The command name of the tool to run.: ' \

0 commit comments

Comments
 (0)