Skip to content
This repository has been archived by the owner on Sep 29, 2018. It is now read-only.

Commit

Permalink
Clear the screen
Browse files Browse the repository at this point in the history
Signed-off-by: CodeHz <codehz@outlook.com>
  • Loading branch information
codehz committed Sep 5, 2018
1 parent a19a33b commit b1a1f40
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ func (a *attachCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}
}
}()
attach(a.profile, fasttemplate.New(a.prompt, "{{", "}}"))
printInfo("Done.")
return subcommands.ExitSuccess
}

Expand Down Expand Up @@ -110,8 +111,10 @@ func (c *runCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}) (
}()
checkBin()
if run(c.profile, fasttemplate.New(c.prompt, "{{", "}}")) {
printInfo("Done.")
return subcommands.ExitSuccess
}
printInfo("Failed.")
return subcommands.ExitFailure
}

Expand Down

0 comments on commit b1a1f40

Please sign in to comment.