1
0
mirror of https://github.com/jakeswenson/BitBetter.git synced 2023-10-10 13:36:57 +02:00
BitBetter/licenseGen.ps1

16 lines
378 B
PowerShell
Raw Normal View History

2023-01-02 20:59:14 +01:00
if ($($args.Count) -lt 1) {
echo "USAGE: <License Gen action> [License Gen args...]"
echo "ACTIONS:"
echo " interactive"
echo " user"
echo " org"
Exit 1
}
if ($args[0] = "interactive") {
$shiftedarray = $args[1 .. ($args.count-1)]
docker run -it --rm bitbetter/licensegen "$shiftedarray"
} else {
docker run bitbetter/licensegen "$shiftedarray"
}