Skip to content

Commit aebf421

Browse files
edvilmedsplaisted
authored andcommitted
Update completions
1 parent 1f6fc19 commit aebf421

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
@@ -1729,13 +1729,20 @@ _testhost_tool_run() {
17291729
prev="${COMP_WORDS[COMP_CWORD-1]}"
17301730
COMPREPLY=()
17311731

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

17341734
if [[ $COMP_CWORD == "$1" ]]; then
17351735
COMPREPLY=( $(compgen -W "$opts" -- "$cur") )
17361736
return
17371737
fi
17381738

1739+
case $prev in
1740+
--verbosity|-v)
1741+
COMPREPLY=( $(compgen -W "d detailed diag diagnostic m minimal n normal q quiet" -- "$cur") )
1742+
return
1743+
;;
1744+
esac
1745+
17391746
COMPREPLY=( $(compgen -W "$opts" -- "$cur") )
17401747
}
17411748

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,6 +1058,13 @@ Register-ArgumentCompleter -Native -CommandName 'testhost' -ScriptBlock {
10581058
$staticCompletions = @(
10591059
[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.")
10601060
[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('--ignore-failed-sources', '--ignore-failed-sources', [CompletionResultType]::ParameterName, "Treat package source failures as warnings.")
1067+
[CompletionResult]::new('--interactive', '--interactive', [CompletionResultType]::ParameterName, "Allows the command to stop and wait for user input or action (for example to complete authentication).")
10611068
[CompletionResult]::new('--help', '--help', [CompletionResultType]::ParameterName, "Show command line help.")
10621069
[CompletionResult]::new('--help', '-h', [CompletionResultType]::ParameterName, "Show command line help.")
10631070
)

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,6 +1128,13 @@ _testhost() {
11281128
_arguments "${_arguments_options[@]}" : \
11291129
'--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.]' \
11301130
'--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+
'--ignore-failed-sources[Treat package source failures as warnings.]' \
1137+
'--interactive[Allows the command to stop and wait for user input or action (for example to complete authentication).]' \
11311138
'--help[Show command line help.]' \
11321139
'-h[Show command line help.]' \
11331140
':commandName -- The command name of the tool to run.: ' \

0 commit comments

Comments
 (0)