diff options
| author | Jeff Carr <[email protected]> | 2024-02-12 15:24:35 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-12 15:24:35 -0600 |
| commit | 4555b9f34d926f1a94691a1d2db5ed2d1520daa8 (patch) | |
| tree | c5669d8ab90c9583259c58889da1e4a8a443029e /args.go | |
| parent | cdc5743e67fd69c20a582d59ec2c47c804ae84ef (diff) | |
add a git commit button. I used it for this commit
Diffstat (limited to 'args.go')
| -rw-r--r-- | args.go | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -12,15 +12,11 @@ import ( "go.wit.com/log" ) -// GadgetDisplay string `arg:"env:DISPLAY"` -// GadgetTmpLog bool `arg:"--tmp-log" help:"automatically send STDOUT to /tmp"` -// GadgetVerboseDNS bool `arg:"--verbose" help:"debug your dns settings"` var args struct { DownloadAll bool `arg:"--download-all" help:"download everything from go.wit.com"` GitPull bool `arg:"--git-pull" help:"do git pull in every repository"` CheckoutUser bool `arg:"--switch-to-user-branch" help:"switch everything to your user branch"` CheckoutDevel bool `arg:"--switch-to-devel-branch" help:"switch everything to the devel branch"` - TmpLog bool `arg:"--tmp-log" help:"automatically send STDOUT to /tmp"` } func init() { @@ -28,7 +24,9 @@ func init() { if debugger.ArgDebug() { log.Info("cmd line --debugger == true") - } else { - log.Info("cmd line --debugger == false") + go func() { + log.Sleep(2) + debugger.DebugWindow() + }() } } |
