From 526c3f0ed139bbacaa415154a272d96279d26239 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 10 Mar 2026 19:38:06 +0200 Subject: task 80330fc4: deduplicate default config path helper --- cmd/hexai-tmux-edit/main.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'cmd/hexai-tmux-edit') diff --git a/cmd/hexai-tmux-edit/main.go b/cmd/hexai-tmux-edit/main.go index 931d1c4..ea3330b 100644 --- a/cmd/hexai-tmux-edit/main.go +++ b/cmd/hexai-tmux-edit/main.go @@ -22,7 +22,7 @@ import ( ) func main() { - defaultPath := defaultConfigPath() + defaultPath := appconfig.DefaultConfigPath() configPath := flag.String("config", "", fmt.Sprintf("path to config file (default: %s)", defaultPath)) agent := flag.String("agent", "", "AI agent name (auto-detected if omitted)") pane := flag.String("pane", "", "tmux target pane ID (e.g. %%5)") @@ -38,11 +38,3 @@ func main() { os.Exit(1) } } - -func defaultConfigPath() string { - path, err := appconfig.ConfigPath() - if err != nil { - return "$XDG_CONFIG_HOME/hexai/config.toml" - } - return path -} -- cgit v1.2.3