We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 080462b commit 594b68cCopy full SHA for 594b68c
invoke.ps1
@@ -1,5 +1,6 @@
1
#!/usr/bin/env pwsh
2
+param ([Parameter(Position = 0)] [string] $Command = "Default")
3
Set-StrictMode -Version Latest
4
$ErrorActionPreference = "Stop"
5
$PSNativeCommandUseErrorActionPreference = $true
-. $PSScriptRoot/tool/$($args.Count -eq 0 ? "Default" : $args[0]).ps1
6
+. $PSScriptRoot/tool/$Command.ps1
0 commit comments