fix(launcher): clear screen on exit
This commit is contained in:
parent
6a10a08d9e
commit
f1ab5eb07b
1 changed files with 5 additions and 0 deletions
|
@ -268,6 +268,11 @@ func Run(cmd *cobra.Command, args []string) error {
|
|||
os.Exit(1)
|
||||
}
|
||||
|
||||
// TODO this feels hacky and should probably be replaced
|
||||
execCmd := exec.Command("clear")
|
||||
execCmd.Stdout = os.Stdout
|
||||
execCmd.Run()
|
||||
|
||||
if finalModel, ok := finalModel.(model); ok && finalModel.shouldExec != "" {
|
||||
execCmd := exec.Command(finalModel.shouldExec)
|
||||
execCmd.Stdin = os.Stdin
|
||||
|
|
Loading…
Add table
Reference in a new issue