2024-01-09 15:34:53 -06:00
|
|
|
package repostatus
|
|
|
|
|
|
|
|
/*
|
|
|
|
this enables command line options from other packages like 'gui' and 'log'
|
|
|
|
*/
|
|
|
|
|
2024-01-18 00:57:43 -06:00
|
|
|
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
|
|
|
|
|
2024-02-20 18:56:22 -06:00
|
|
|
var REPO *log.LogFlag
|
|
|
|
var REPOWARN *log.LogFlag
|
|
|
|
|
2024-01-09 15:34:53 -06:00
|
|
|
func init() {
|
2024-01-23 10:52:17 -06:00
|
|
|
full := "go.wit.com/lib/gui/repostatus"
|
2024-01-09 15:34:53 -06:00
|
|
|
short := "repostatus"
|
|
|
|
|
2024-01-23 10:52:17 -06:00
|
|
|
INFO = log.NewFlag("INFO", false, full, short, "general repo things")
|
2024-01-18 00:57:43 -06:00
|
|
|
WARN = log.NewFlag("WARN", true, full, short, "bad things")
|
|
|
|
CHANGE = log.NewFlag("CHANGE", true, full, short, "when repo changes")
|
2024-02-20 18:56:22 -06:00
|
|
|
|
|
|
|
full = "go.wit.com/lib/gui/repo"
|
|
|
|
short = "repo"
|
|
|
|
|
|
|
|
REPO = log.NewFlag("REPO", false, full, short, "general repo things")
|
|
|
|
REPOWARN = log.NewFlag("REPOWARN", true, full, short, "repo warnings")
|
2024-01-09 15:34:53 -06:00
|
|
|
}
|