aboutsummaryrefslogtreecommitdiff
path: root/run.ps1
diff options
context:
space:
mode:
Diffstat (limited to 'run.ps1')
-rw-r--r--run.ps110
1 files changed, 10 insertions, 0 deletions
diff --git a/run.ps1 b/run.ps1
index 7364183..bfea866 100644
--- a/run.ps1
+++ b/run.ps1
@@ -26,6 +26,12 @@ if (Test-Path ".run/src/bin/*.ps1") {
}
}
+if (Test-Path ".run/src/bin/*.exe") {
+ Get-ChildItem -Path ".run/src/bin/*.exe" | ForEach-Object {
+ $tools[$_.BaseName] = @{ Type = "exe"; Path = $_.FullName }
+ }
+}
+
if ($args.Count -eq 0) {
$sorted = $tools.Keys | Sort-Object
$total = $sorted.Count
@@ -53,6 +59,7 @@ if ($args.Count -eq 0) {
"py" { "Python" }
"rs" { "Rust" }
"ps1" { "PowerShell" }
+ "exe" { "Binary" }
}
$entry = " " + $i.ToString().PadRight($num_w) + ") " + $name.PadRight($max_name) + " [$lang]"
Write-Host ("│" + $entry.PadRight($inner_w) + "│")
@@ -89,6 +96,9 @@ switch ($info.Type) {
"ps1" {
& $info.Path @script_args
}
+ "exe" {
+ & $info.Path $script_args
+ }
"py" {
python $info.Path $script_args
}