Skip to content

Commit bacc176

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

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
@@ -1332,7 +1332,7 @@ _testhost_restore() {
13321332
prev="${COMP_WORDS[COMP_CWORD-1]}"
13331333
COMPREPLY=()
13341334

1335-
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"
1335+
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"
13361336

13371337
if [[ $COMP_CWORD == "$1" ]]; then
13381338
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
@@ -795,6 +795,7 @@ Register-ArgumentCompleter -Native -CommandName 'testhost' -ScriptBlock {
795795
[CompletionResult]::new('--force-evaluate', '--force-evaluate', [CompletionResultType]::ParameterName, "Forces restore to reevaluate all dependencies even if a lock file already exists.")
796796
[CompletionResult]::new('--arch', '--arch', [CompletionResultType]::ParameterName, "The target architecture.")
797797
[CompletionResult]::new('--arch', '-a', [CompletionResultType]::ParameterName, "The target architecture.")
798+
[CompletionResult]::new('--os', '--os', [CompletionResultType]::ParameterName, "The target operating system.")
798799
[CompletionResult]::new('--help', '--help', [CompletionResultType]::ParameterName, "Show command line help.")
799800
[CompletionResult]::new('--help', '-h', [CompletionResultType]::ParameterName, "Show command line help.")
800801
)

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,7 @@ _testhost() {
821821
'--force-evaluate[Forces restore to reevaluate all dependencies even if a lock file already exists.]' \
822822
'--arch=[The target architecture.]:ARCH: ' \
823823
'-a=[The target architecture.]:ARCH: ' \
824+
'--os=[The target operating system.]:OS: ' \
824825
'--help[Show command line help.]' \
825826
'-h[Show command line help.]' \
826827
'*::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)