update pwsh style in drone helper
This commit is contained in:
parent
9f7cac860e
commit
533755c2bf
@ -1,18 +1,17 @@
|
|||||||
$Global:ProgressPreference = 'SilentlyContinue'
|
$Global:ProgressPreference = 'SilentlyContinue'
|
||||||
|
|
||||||
function Invoke-ShowEnv() {
|
function Invoke-ShowEnv {
|
||||||
[CmdletBinding()]
|
[CmdletBinding()]
|
||||||
param()
|
param ()
|
||||||
|
|
||||||
process {
|
process {
|
||||||
Get-ChildItem -Path 'Env:' | Format-Table | Out-String
|
Get-ChildItem -Path 'Env:' | Format-Table | Out-String
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function Invoke-InstallDependencies() {
|
function Invoke-InstallDependencies {
|
||||||
[CmdletBinding()]
|
[CmdletBinding()]
|
||||||
[OutputType()]
|
param ()
|
||||||
param()
|
|
||||||
|
|
||||||
process {
|
process {
|
||||||
try {
|
try {
|
||||||
@ -35,9 +34,9 @@ function Invoke-InstallDependencies() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function Invoke-Linter () {
|
function Invoke-Linter {
|
||||||
[CmdletBinding()]
|
[CmdletBinding()]
|
||||||
param()
|
param ()
|
||||||
|
|
||||||
process {
|
process {
|
||||||
Invoke-ScriptAnalyzer -Path './src/' -Recurse
|
Invoke-ScriptAnalyzer -Path './src/' -Recurse
|
||||||
@ -46,10 +45,9 @@ function Invoke-Linter () {
|
|||||||
|
|
||||||
function Invoke-UnitTests {
|
function Invoke-UnitTests {
|
||||||
[CmdletBinding()]
|
[CmdletBinding()]
|
||||||
Param()
|
param ()
|
||||||
|
|
||||||
process {
|
process {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Write-Host '===== Preload internal private functions =====' -ForegroundColor Black -BackgroundColor Yellow
|
Write-Host '===== Preload internal private functions =====' -ForegroundColor Black -BackgroundColor Yellow
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user