digitalocean/args.go

29 lines
719 B
Go
Raw Normal View History

2024-01-01 15:33:08 -06:00
package digitalocean
// initializes logging and command line options
import (
"go.wit.com/arg"
"go.wit.com/log"
2024-01-01 15:33:08 -06:00
)
var NOW *log.LogFlag
var INFO *log.LogFlag
var POLL *log.LogFlag
2024-01-01 15:33:08 -06:00
var argDo ArgsDo
// This struct can be used with the go-arg package
type ArgsDo struct {
DigitalOceanTimer int `arg:"--digitalocean-poll-interval" help:"how often to poll droplet status (default 60 seconds)"`
}
func init() {
arg.Register(&argDo)
full := "go.wit.com/gui/digitalocean"
short := "DOgui"
2024-01-01 15:33:08 -06:00
NOW = log.NewFlag( "NOW", true, full, short, "temp debugging stuff")
INFO = log.NewFlag("INFO", false, full, short, "normal debugging stuff")
INFO = log.NewFlag("POLL", false, full, short, "show droplet status polling")
2024-01-01 15:33:08 -06:00
}