summaryrefslogtreecommitdiff
path: root/cmd/hexai-tmux-action/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/hexai-tmux-action/main.go')
-rw-r--r--cmd/hexai-tmux-action/main.go10
1 files changed, 1 insertions, 9 deletions
diff --git a/cmd/hexai-tmux-action/main.go b/cmd/hexai-tmux-action/main.go
index 32dd725..6249de3 100644
--- a/cmd/hexai-tmux-action/main.go
+++ b/cmd/hexai-tmux-action/main.go
@@ -15,7 +15,7 @@ func main() {
infile := flag.String("infile", "", "Read input from this file instead of stdin")
outfile := flag.String("outfile", "", "Write output to this file instead of stdout")
uiChild := flag.Bool("ui-child", false, "INTERNAL: run interactive UI and write to -outfile atomically")
- defaultPath := defaultConfigPath()
+ defaultPath := appconfig.DefaultConfigPath()
configPath := flag.String("config", "", fmt.Sprintf("path to config file (default: %s)", defaultPath))
tmuxTarget := flag.String("tmux-target", "", "tmux split target (advanced)")
tmuxSplit := flag.String("tmux-split", "v", "tmux split orientation: v or h")
@@ -35,11 +35,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
-}