Initial commit
This commit is contained in:
commit
ee4762673a
14 changed files with 410 additions and 0 deletions
12
common.ps1
Normal file
12
common.ps1
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env pwsh
|
||||
|
||||
Get-Content .env | ForEach-Object {
|
||||
if ($_) {
|
||||
$name, $value = $_.split('=', 2)
|
||||
set-content env:\$name $value
|
||||
}
|
||||
}
|
||||
|
||||
function RunProgram([string] $program, [parameter(ValueFromRemainingArguments = $true)][string[]] $arguments) {
|
||||
Start-Process -NoNewWindow -Wait -FilePath $program -ArgumentList $arguments
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue