Fix cli editor
This commit is contained in:
parent
bf213be9fb
commit
cf2f125e86
@ -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(
|
||||||
|
@ -27,4 +27,5 @@ pshow () {
|
|||||||
|
|
||||||
popen () {
|
popen () {
|
||||||
gitlab-project-manager project open $1
|
gitlab-project-manager project open $1
|
||||||
|
reset 2>&1 > /dev/null
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user