A useful CLI tool for interacting with Omat-based infrastructure.
This assumes you have HomeBrew set up and functioning properly. Additionally, you will need a functioning git install. It is recommended that you use the one installable from HomeBrew, or install your own. The one provided by Apple is not recommended.
brew bundle --no-upgrade
eval "$(gimme $(<.go-version))"
make setup
eval "$(gimme $(<.go-version))" # Activate the pertinent Go version.
make # See what make targets are available
make compile # Compile things.
make fmt # Format code
make lint # Lint code
make fix # Fix some anti-patterns in code
make build # Run tests, generate code, compile code
make dist # Like `make build`, but build a distributable (fat) binary
You'll need to set up a .omat.yml
, preferrably in your home directory. The tool will look for it
recursively from whatever directory the tool is executed in, up to your home directory.
omat manual # Show the maual, including what configuration needs to be set up.
omat # List available commands.
omat launch <template> <ssh key> # Launch a new instance from a template.
omat hosts # See all running hosts.
omat help <subcommand> # See help for a specific sub-command.