diff options
| author | Jeff Carr <[email protected]> | 2024-01-09 15:34:53 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-09 15:34:53 -0600 |
| commit | 87346d9452b38db517e76e070f11928060bc2b99 (patch) | |
| tree | 2e6ff93e368fda0a1581496985798fe4c1de3569 /args.go | |
initial commit
Diffstat (limited to 'args.go')
| -rw-r--r-- | args.go | 32 |
1 files changed, 32 insertions, 0 deletions
@@ -0,0 +1,32 @@ +package repostatus + +/* + this enables command line options from other packages like 'gui' and 'log' +*/ + +import ( + "go.wit.com/log" +) + +var NOW *log.LogFlag +var INFO *log.LogFlag + +var SPEW *log.LogFlag +var WARN *log.LogFlag + +var CHANGE *log.LogFlag +var STATUS *log.LogFlag + +func init() { + full := "go.wit.com/gui/gadgets/repostatus" + short := "repostatus" + + NOW = log.NewFlag( "NOW", true, full, short, "temp debugging stuff") + INFO = log.NewFlag("INFO", false, full, short, "normal debugging stuff") + + WARN = log.NewFlag("WARN", true, full, short, "bad things") + SPEW = log.NewFlag("SPEW", false, full, short, "spew stuff") + + CHANGE = log.NewFlag("CHANGE", true, full, short, "when repo changes") + STATUS = log.NewFlag("STATUS", false, full, short, "current status") +} |
