cli-o-mat

command module
v0.0.0-...-21d1597 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2024 License: MIT Imports: 1 Imported by: 0

README

cli-o-mat

A useful CLI tool for interacting with Omat-based infrastructure.

Workstation Setup

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

Working on the Code

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

Usage

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL