aboutsummaryrefslogtreecommitdiffstats
path: root/commands/termui.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/termui.go')
-rw-r--r--commands/termui.go13
1 files changed, 6 insertions, 7 deletions
diff --git a/commands/termui.go b/commands/termui.go
index 1470790f..4df6cdaf 100644
--- a/commands/termui.go
+++ b/commands/termui.go
@@ -10,14 +10,13 @@ func newTermUICommand() *cobra.Command {
env := newEnv()
cmd := &cobra.Command{
- Use: "termui",
- Aliases: []string{"tui"},
- Short: "Launch the terminal UI.",
- PreRunE: loadBackendEnsureUser(env),
- PostRunE: closeBackend(env),
- RunE: func(cmd *cobra.Command, args []string) error {
+ Use: "termui",
+ Aliases: []string{"tui"},
+ Short: "Launch the terminal UI.",
+ PreRunE: loadBackendEnsureUser(env),
+ RunE: closeBackend(env, func(cmd *cobra.Command, args []string) error {
return runTermUI(env)
- },
+ }),
}
return cmd