Browse Source

Add umbrel-dev script

umbrel-beta
Luke Childs 5 years ago
parent
commit
c37fe719e4
  1. 28
      umbrel-dev

28
umbrel-dev

@ -0,0 +1,28 @@
#!/usr/bin/env bash
set -euo pipefail
show_help() {
cat << EOF
umbrel-dev 0.0.0
Automatically initialize and manage an Umbrel development environment.
Usage: umbrel-dev <command> [options]
Commands:
help Show this help message
init Initialize an Umbrel development environment in the working directory
up Boot the development VM
halt Halt the development VM
destroy Destroy the development VM
rebuild [<container>] Rebuild all or a specific container
ssh Get an SSH session inside the development VM
run <command> Run a command inside the development VM
EOF
}
# Show help text if no args set or help is called
if [[ -z ${1+x} ]] || [[ "$1" = "help" ]]; then
show_help
exit 1
fi
Loading…
Cancel
Save