summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-10-05 16:42:56 +0300
committerPaul Buetow <paul@buetow.org>2025-10-05 16:42:56 +0300
commitb279380cac3abb8b713f345b1a51a2a02f9c81bf (patch)
tree0e5c920b98e76079a2bc3764f553108ec36256db
parent632c93545ad48bb894e76bc8c84261a69571bf0b (diff)
add open for macosv0.9.3
-rw-r--r--GEMINI.md (renamed from CLAUDE.md)0
-rw-r--r--cmd/tasksamurai/main.go10
-rw-r--r--internal/version.go2
3 files changed, 10 insertions, 2 deletions
diff --git a/CLAUDE.md b/GEMINI.md
index 3514455..3514455 100644
--- a/CLAUDE.md
+++ b/GEMINI.md
diff --git a/cmd/tasksamurai/main.go b/cmd/tasksamurai/main.go
index 42cbeb3..b964f52 100644
--- a/cmd/tasksamurai/main.go
+++ b/cmd/tasksamurai/main.go
@@ -5,6 +5,8 @@ import (
"fmt"
"os"
+ "runtime"
+
"codeberg.org/snonux/tasksamurai/internal/task"
"codeberg.org/snonux/tasksamurai/internal/ui"
@@ -12,8 +14,14 @@ import (
)
func main() {
+ // Set default browser command depending on OS.
+ browserCmdDefault := "firefox"
+ if runtime.GOOS == "darwin" {
+ browserCmdDefault = "open"
+ }
+
debugLog := flag.String("debug-log", "", "path to debug log file")
- browserCmd := flag.String("browser-cmd", "firefox", "command used to open URLs")
+ browserCmd := flag.String("browser-cmd", browserCmdDefault, "command used to open URLs")
disco := flag.Bool("disco", false, "enable disco mode")
flag.Parse()
diff --git a/internal/version.go b/internal/version.go
index beccbb4..4bb79f7 100644
--- a/internal/version.go
+++ b/internal/version.go
@@ -1,4 +1,4 @@
package internal
// Version is the current version of Task Samurai.
-const Version = "0.9.2"
+const Version = "0.9.3"