parent
f3a5cd0db1
commit
c070af1d96
21
args.go
21
args.go
|
@ -7,8 +7,9 @@ import (
|
|||
"go.wit.com/log"
|
||||
)
|
||||
|
||||
var INFO log.LogFlag
|
||||
var POLL log.LogFlag
|
||||
var NOW *log.LogFlag
|
||||
var INFO *log.LogFlag
|
||||
var POLL *log.LogFlag
|
||||
var argDo ArgsDo
|
||||
|
||||
// This struct can be used with the go-arg package
|
||||
|
@ -18,16 +19,10 @@ type ArgsDo struct {
|
|||
|
||||
func init() {
|
||||
arg.Register(&argDo)
|
||||
full := "go.wit.com/gui/digitalocean"
|
||||
short := "DOgui"
|
||||
|
||||
INFO.B = false
|
||||
INFO.Name = "INFO"
|
||||
INFO.Subsystem = "digitalocean"
|
||||
INFO.Desc = "Enable log.Info()"
|
||||
INFO.Register()
|
||||
|
||||
POLL.B = false
|
||||
POLL.Name = "POLL"
|
||||
POLL.Subsystem = "digitalocean"
|
||||
POLL.Desc = "Show droplet status polling"
|
||||
POLL.Register()
|
||||
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")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue