summaryrefslogtreecommitdiff
path: root/cmd/hexai-tmux-edit/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/hexai-tmux-edit/main.go')
-rw-r--r--cmd/hexai-tmux-edit/main.go10
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
-}