diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-10 19:38:06 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-10 19:38:06 +0200 |
| commit | 526c3f0ed139bbacaa415154a272d96279d26239 (patch) | |
| tree | 3754e0b969b47761583ec408e02ea45a7185ad71 /cmd/hexai-tmux-edit | |
| parent | 07115c22a74dd5311f70434029791d5346e627c4 (diff) | |
task 80330fc4: deduplicate default config path helper
Diffstat (limited to 'cmd/hexai-tmux-edit')
| -rw-r--r-- | cmd/hexai-tmux-edit/main.go | 10 |
1 files changed, 1 insertions, 9 deletions
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 -} |
