From 4555b9f34d926f1a94691a1d2db5ed2d1520daa8 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 12 Feb 2024 15:24:35 -0600 Subject: add a git commit button. I used it for this commit --- args.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'args.go') diff --git a/args.go b/args.go index 0711ba4..0f827c7 100644 --- a/args.go +++ b/args.go @@ -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() + }() } } -- cgit v1.2.3