Skip to content

Commit ad3d3fe

Browse files
authored
Add pipeline support (#1)
1 parent f2e04fe commit ad3d3fe

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/Scoop.psm1

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,15 @@ class ScoopAppDetailed {
2525
function Find-ScoopApp {
2626
[CmdletBinding()]
2727
param (
28-
[Parameter()]
28+
[Parameter(Position = 0,
29+
ValueFromPipeline,
30+
ValueFromPipelineByPropertyName)]
2931
[SupportsWildcards()]
3032
[string[]]
3133
$Name = '*',
3234

33-
[Parameter()]
35+
[Parameter(Position = 1,
36+
ValueFromPipelineByPropertyName)]
3437
[SupportsWildcards()]
3538
[string]
3639
$Bucket = '*'
@@ -74,6 +77,9 @@ function Find-ScoopApp {
7477
function Get-ScoopApp {
7578
[CmdletBinding()]
7679
param (
80+
[Parameter(Position = 0,
81+
ValueFromPipeline,
82+
ValueFromPipelineByPropertyName)]
7783
[SupportsWildcards()]
7884
[ValidateNotNullOrEmpty()]
7985
[string[]]
@@ -342,6 +348,9 @@ function Uninstall-ScoopApp {
342348
function Get-ScoopBucket {
343349
[CmdletBinding()]
344350
param (
351+
[Parameter(Position = 0,
352+
ValueFromPipeline,
353+
ValueFromPipelineByPropertyName)]
345354
[SupportsWildcards()]
346355
[ValidateNotNullOrEmpty()]
347356
[string[]]

0 commit comments

Comments
 (0)