Fix cli editor

This commit is contained in:
Ryan McGuire 2023-12-13 13:28:07 -05:00
parent bf213be9fb
commit cf2f125e86
2 changed files with 3 additions and 0 deletions

View File

@ -86,6 +86,8 @@ func openEditor(editor string, path string) {
// Launch editor // Launch editor
cmd := exec.CommandContext(rootCmd.Context(), editor, args...) cmd := exec.CommandContext(rootCmd.Context(), editor, args...)
cmd.Dir = filepath.Dir(path) cmd.Dir = filepath.Dir(path)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
if err := cmd.Run(); err != nil { if err := cmd.Run(); err != nil {
plog.Error("Failed to open project", plog.Args( plog.Error("Failed to open project", plog.Args(

View File

@ -27,4 +27,5 @@ pshow () {
popen () { popen () {
gitlab-project-manager project open $1 gitlab-project-manager project open $1
reset 2>&1 > /dev/null
} }