11 lines
195 B
Go
11 lines
195 B
Go
//go:build unix
|
|
|
|
package config
|
|
|
|
import (
|
|
"os/exec"
|
|
)
|
|
|
|
func (cfg *Config) CreateEditorCommand(path string) *exec.Cmd {
|
|
return exec.Command("sh", "-c", cfg.Editor+" \"$@\"", cfg.Editor, path)
|
|
}
|