Skip to content

Commit

Permalink
tools added ArgumentCompletions()
Browse files Browse the repository at this point in the history
For common branches.
  • Loading branch information
silverqx committed Aug 14, 2024
1 parent 4478d01 commit 77b9139
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/Get-VcpkgHash.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Param(
HelpMessage = 'Specifies a branch for which to download the package archive (works with ' +
'a commit ID too).')]
[ValidateNotNullOrEmpty()]
[ArgumentCompletions('develop', 'main')]
[string] $Branch = 'main',

[Parameter(Position = 1, Mandatory, ParameterSetName = 'Tag', ValueFromPipeline,
Expand All @@ -33,6 +34,7 @@ Param(
ValueFromPipelineByPropertyName,
HelpMessage = 'Specifies a git object, it can be the tag, commit ID, or branch.')]
[ValidateNotNullOrEmpty()]
[ArgumentCompletions('develop', 'main')]
[string] $Ref,

[Parameter(HelpMessage = 'Specifies how many times PowerShell retries a connection when ' +
Expand Down
2 changes: 2 additions & 0 deletions tools/qvcpkg-hash.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Param(
HelpMessage = 'Specifies a branch for which to download the package archive (works with ' +
'a commit ID too).')]
[ValidateNotNullOrEmpty()]
[ArgumentCompletions('develop', 'main')]
[string] $Branch = 'main',

[Parameter(Position = 0, Mandatory, ParameterSetName = 'Tag', ValueFromPipeline,
Expand All @@ -28,6 +29,7 @@ Param(
ValueFromPipelineByPropertyName,
HelpMessage = 'Specifies a git object, it can be the tag, commit ID, or branch.')]
[ValidateNotNullOrEmpty()]
[ArgumentCompletions('develop', 'main')]
[string] $Ref
)

Expand Down

0 comments on commit 77b9139

Please sign in to comment.