diff options
| author | Paul Bütow <1224732+snonux@users.noreply.github.com> | 2025-06-24 23:22:29 +0300 |
|---|---|---|
| committer | Paul Bütow <1224732+snonux@users.noreply.github.com> | 2025-06-24 23:22:29 +0300 |
| commit | 60da6c59bcc58605bcc13609c855e32f045e9a1c (patch) | |
| tree | ee013ed633d9431e6211f22ef3894552ea2ae74e /cmd | |
| parent | dbfba814e68bd6b679b2fd77bf10d34336485238 (diff) | |
Add disco mode with flag and hotkey
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/tasksamurai/main.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/tasksamurai/main.go b/cmd/tasksamurai/main.go index 8329fa1..42cbeb3 100644 --- a/cmd/tasksamurai/main.go +++ b/cmd/tasksamurai/main.go @@ -14,6 +14,7 @@ import ( func main() { debugLog := flag.String("debug-log", "", "path to debug log file") browserCmd := flag.String("browser-cmd", "firefox", "command used to open URLs") + disco := flag.Bool("disco", false, "enable disco mode") flag.Parse() if err := task.SetDebugLog(*debugLog); err != nil { @@ -27,6 +28,8 @@ func main() { os.Exit(1) } + m.SetDisco(*disco) + // Clear the screen before starting the TUI to avoid leaving any // previous command line artefacts behind. fmt.Print("\033[H\033[2J") |
