:exec, :pipe: show exit status on completion
This commit is contained in:
parent
e1152b6a13
commit
6797f93476
|
@ -37,7 +37,8 @@ func (_ ExecCmd) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
Color(tcell.ColorDefault, tcell.ColorRed)
|
Color(tcell.ColorDefault, tcell.ColorRed)
|
||||||
} else {
|
} else {
|
||||||
aerc.PushStatus(fmt.Sprintf(
|
aerc.PushStatus(fmt.Sprintf(
|
||||||
"%s: complete", args[0]), 10*time.Second).
|
"%s: completed with status %d", args[0],
|
||||||
|
cmd.ProcessState.ExitCode()), 10*time.Second).
|
||||||
Color(tcell.ColorDefault, tcell.ColorDefault)
|
Color(tcell.ColorDefault, tcell.ColorDefault)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
|
@ -92,7 +92,8 @@ func (_ Pipe) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
Color(tcell.ColorDefault, tcell.ColorRed)
|
Color(tcell.ColorDefault, tcell.ColorRed)
|
||||||
} else {
|
} else {
|
||||||
aerc.PushStatus(fmt.Sprintf(
|
aerc.PushStatus(fmt.Sprintf(
|
||||||
"%s: complete", args[0]), 10*time.Second).
|
"%s: completed with status %d", args[0],
|
||||||
|
ecmd.ProcessState.ExitCode()), 10*time.Second).
|
||||||
Color(tcell.ColorDefault, tcell.ColorDefault)
|
Color(tcell.ColorDefault, tcell.ColorDefault)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue