tools added ArgumentCompletions()

For common branches.
This commit is contained in:
silverqx
2024-08-15 00:39:34 +02:00
parent 4478d010d6
commit 77b9139592
2 changed files with 4 additions and 0 deletions

View File

@@ -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,
@@ -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 ' +

View File

@@ -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,
@@ -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
)