Skip to content

Commit 5e5908f

Browse files
CopilotmarcpopMSFT
andcommitted
Fix completion test baselines for --os option in restore command
Co-authored-by: marcpopMSFT <[email protected]>
1 parent 501a7f1 commit 5e5908f

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
@@ -1306,7 +1306,7 @@ _testhost_restore() {
13061306
prev="${COMP_WORDS[COMP_CWORD-1]}"
13071307
COMPREPLY=()
13081308

1309-
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"
1309+
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"
13101310

13111311
if [[ $COMP_CWORD == "$1" ]]; then
13121312
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
@@ -783,6 +783,7 @@ Register-ArgumentCompleter -Native -CommandName 'testhost' -ScriptBlock {
783783
[CompletionResult]::new('--force-evaluate', '--force-evaluate', [CompletionResultType]::ParameterName, "Forces restore to reevaluate all dependencies even if a lock file already exists.")
784784
[CompletionResult]::new('--arch', '--arch', [CompletionResultType]::ParameterName, "The target architecture.")
785785
[CompletionResult]::new('--arch', '-a', [CompletionResultType]::ParameterName, "The target architecture.")
786+
[CompletionResult]::new('--os', '--os', [CompletionResultType]::ParameterName, "The target operating system.")
786787
[CompletionResult]::new('--help', '--help', [CompletionResultType]::ParameterName, "Show command line help.")
787788
[CompletionResult]::new('--help', '-h', [CompletionResultType]::ParameterName, "Show command line help.")
788789
)

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -811,6 +811,7 @@ _testhost() {
811811
'--force-evaluate[Forces restore to reevaluate all dependencies even if a lock file already exists.]' \
812812
'--arch=[The target architecture.]:ARCH: ' \
813813
'-a=[The target architecture.]:ARCH: ' \
814+
'--os=[The target operating system.]:OS: ' \
814815
'--help[Show command line help.]' \
815816
'-h[Show command line help.]' \
816817
'*::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)