discordo/internal/config/editor_default.go
Abby K eee2862a1e
fix(config): handle editor with args on unix (#744)
Co-authored-by: Ayyan <ayn2op@gmail.com>
2026-02-17 01:33:49 -05:00

11 lines
162 B
Go

//go:build !unix
package config
import (
"os/exec"
)
func (cfg *Config) CreateEditorCommand(path string) *exec.Cmd {
return exec.Command(cfg.Editor, path)
}