repostatus/args.go

23 lines
487 B
Go
Raw Normal View History

2024-01-09 15:34:53 -06:00
package repostatus
/*
this enables command line options from other packages like 'gui' and 'log'
*/
import (
2024-01-09 15:34:53 -06:00
"go.wit.com/log"
)
var INFO *log.LogFlag
var WARN *log.LogFlag
var CHANGE *log.LogFlag
func init() {
full := "go.wit.com/lib/gui/repostatus"
2024-01-09 15:34:53 -06:00
short := "repostatus"
INFO = log.NewFlag("INFO", false, full, short, "general repo things")
WARN = log.NewFlag("WARN", true, full, short, "bad things")
CHANGE = log.NewFlag("CHANGE", true, full, short, "when repo changes")
2024-01-09 15:34:53 -06:00
}