Skip to content

Commit 30198b0

Browse files
CopilotmarcpopMSFT
andcommitted
Fix completion test baselines for --os option in restore command
Co-authored-by: marcpopMSFT <[email protected]>
1 parent 333e083 commit 30198b0

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
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
@@ -1310,7 +1310,7 @@ _testhost_restore() {
13101310
prev="${COMP_WORDS[COMP_CWORD-1]}"
13111311
COMPREPLY=()
13121312

1313-
opts="--disable-build-servers --source --packages --use-current-runtime --disable-parallel --configfile --no-http-cache --ignore-failed-sources --force --runtime --no-dependencies --verbosity --interactive --artifacts-path --use-lock-file --locked-mode --lock-file-path --force-evaluate --arch --help"
1313+
opts="--disable-build-servers --source --packages --use-current-runtime --disable-parallel --configfile --no-http-cache --ignore-failed-sources --force --runtime --no-dependencies --verbosity --interactive --artifacts-path --use-lock-file --locked-mode --lock-file-path --force-evaluate --arch --os --help"
13141314

13151315
if [[ $COMP_CWORD == "$1" ]]; then
13161316
COMPREPLY=( $(compgen -W "$opts" -- "$cur") )

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -785,6 +785,7 @@ Register-ArgumentCompleter -Native -CommandName 'testhost' -ScriptBlock {
785785
[CompletionResult]::new('--force-evaluate', '--force-evaluate', [CompletionResultType]::ParameterName, "Forces restore to reevaluate all dependencies even if a lock file already exists.")
786786
[CompletionResult]::new('--arch', '--arch', [CompletionResultType]::ParameterName, "The target architecture.")
787787
[CompletionResult]::new('--arch', '-a', [CompletionResultType]::ParameterName, "The target architecture.")
788+
[CompletionResult]::new('--os', '--os', [CompletionResultType]::ParameterName, "The target operating system.")
788789
[CompletionResult]::new('--help', '--help', [CompletionResultType]::ParameterName, "Show command line help.")
789790
[CompletionResult]::new('--help', '-h', [CompletionResultType]::ParameterName, "Show command line help.")
790791
)

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -813,6 +813,7 @@ _testhost() {
813813
'--force-evaluate[Forces restore to reevaluate all dependencies even if a lock file already exists.]' \
814814
'--arch=[The target architecture.]:ARCH: ' \
815815
'-a=[The target architecture.]:ARCH: ' \
816+
'--os=[The target operating system.]:OS: ' \
816817
'--help[Show command line help.]' \
817818
'-h[Show command line help.]' \
818819
'*::PROJECT | SOLUTION | FILE -- The project or solution or C# (file-based program) file to operate on. If a file is not specified, the command will search the current directory for a project or solution.: ' \

0 commit comments

Comments
 (0)