Skip to content

Add SupportsWildcards to Get-OutputBinding and fix help test #183

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ param(
$Configuration = "Debug"
)

#Requires -Version 6.0

Import-Module "$PSScriptRoot/tools/helper.psm1" -Force

# Bootstrap step
Expand Down Expand Up @@ -107,10 +109,20 @@ if($Test.IsPresent) {
throw "Cannot find 'git'. Please make sure it's in the 'PATH'."
}

# Cmdlet help docs should be up-to-date
Update-MarkdownHelp -Path ./docs/cmdlets
$diff = git diff ./docs/cmdlets
if ($diff) {
throw "Cmdlet help docs are not up-to-date, run Update-MarkdownHelp.`n$diff`n"
# Cmdlet help docs should be up-to-date.
# PlatyPS needs the module to be imported.
Import-Module -Force (Join-Path $PSScriptRoot src Modules Microsoft.Azure.Functions.PowerShellWorker)
try {
# Update the help and diff the result.
$docsPath = Join-Path $PSScriptRoot docs cmdlets
Update-MarkdownHelp -Path $docsPath
$diff = git diff $docsPath
if ($diff) {
throw "Cmdlet help docs are not up-to-date, run Update-MarkdownHelp.`n$diff`n"
}
Write-Host "Help is up-to-date."
} finally {
# Clean up.
Remove-Module Microsoft.Azure.Functions.PowerShellWorker -Force
}
}
4 changes: 2 additions & 2 deletions docs/cmdlets/Get-OutputBinding.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Required: False
Position: 1
Default value: *
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
Accept wildcard characters: True
```

### -Purge
Expand All @@ -76,7 +76,7 @@ Accept wildcard characters: False
```

### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

Expand Down
2 changes: 1 addition & 1 deletion docs/cmdlets/Push-OutputBinding.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ Accept wildcard characters: False
```

### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

Expand Down
2 changes: 1 addition & 1 deletion docs/cmdlets/Trace-PipelineObject.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Accept wildcard characters: False
```

### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ function Get-OutputBinding {
[CmdletBinding()]
param(
[Parameter(ValueFromPipeline = $True, ValueFromPipelineByPropertyName = $True)]
[SupportsWildcards()]
[string[]]
$Name = '*',

Expand Down