tools pwsh removed useless $($(

This commit is contained in:
silverqx
2024-06-09 23:47:26 +02:00
parent 2cff93e098
commit c8c7770e36
7 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ Param(
[Parameter(Position = 0, ValueFromPipeline, ValueFromPipelinebyPropertyName,
HelpMessage = 'Specifies the folder to add on the system path, is pwd by default.')]
[ValidateNotNullOrEmpty()]
[string[]] $Path = $($(Get-Location).Path),
[string[]] $Path = (Get-Location).Path,
[Parameter(Position = 1, ValueFromPipelinebyPropertyName,
HelpMessage = 'Specifies the environment variable to which to add a Path, is env:PATH ' +
+1 -1
View File
@@ -10,7 +10,7 @@ Param(
[Parameter(Position = 1,
HelpMessage = 'Specifies the path to the project folder, is pwd by default.')]
[ValidateNotNullOrEmpty()]
[string] $Path = $($(Get-Location).Path) + '\*',
[string] $Path = (Get-Location).Path + '\*',
[Parameter(Position = 2,
HelpMessage = 'Specifies an array of one or more string patterns to be matched as the ' +
+1 -1
View File
@@ -9,7 +9,7 @@ Param(
[Parameter(Position = 1,
HelpMessage = 'Specifies the path to the qmake build folder, is pwd by default.')]
[ValidateNotNullOrEmpty()]
[string] $BuildPath = $($(Get-Location).Path)
[string] $BuildPath = (Get-Location).Path
)
Set-StrictMode -Version 3.0
+1 -1
View File
@@ -9,7 +9,7 @@ Param(
[Parameter(
HelpMessage = 'Specifies the path to the CMake build folder, is pwd by default.')]
[ValidateNotNullOrEmpty()]
[string] $BuildPath = $($(Get-Location).Path),
[string] $BuildPath = (Get-Location).Path,
[Parameter(HelpMessage = 'Specifies the cpp files to be processed, is joined with ' +
'the | character and used in the parenthesized regex eg. (file1|file2).')]
+1 -1
View File
@@ -989,7 +989,7 @@ function Show-DiffSummaryAndApprove {
[Parameter(
HelpMessage = 'Specifies the folder for which to show git diff, is pwd by default.')]
[ValidateNotNullOrEmpty()]
[string[]] $Path = $($(Get-Location).Path)
[string[]] $Path = (Get-Location).Path
)
Write-Progress 'Showing diff summary...'
+1 -1
View File
@@ -4,7 +4,7 @@ Param(
[Parameter(Position = 0, ValueFromPipeline, ValueFromPipelinebyPropertyName,
HelpMessage = 'Specifies the TinyORM debug build folder to add.')]
[ValidateNotNullOrEmpty()]
[string[]] $BuildPath = $($(Get-Location).Path)
[string[]] $BuildPath = (Get-Location).Path
)
Set-StrictMode -Version 3.0
+1 -1
View File
@@ -4,7 +4,7 @@ Param(
[Parameter(Position = 0, ValueFromPipeline, ValueFromPipelinebyPropertyName,
HelpMessage = 'Specifies the TinyORM release build folder to add.')]
[ValidateNotNullOrEmpty()]
[string[]] $BuildPath = $($(Get-Location).Path)
[string[]] $BuildPath = (Get-Location).Path
)
Set-StrictMode -Version 3.0