From 60da6c59bcc58605bcc13609c855e32f045e9a1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20B=C3=BCtow?= <1224732+snonux@users.noreply.github.com> Date: Tue, 24 Jun 2025 23:22:29 +0300 Subject: Add disco mode with flag and hotkey --- cmd/tasksamurai/main.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cmd') 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") -- cgit v1.2.3