package cmd import ( "github.com/lerko/nib/internal/tui" "github.com/spf13/cobra" ) var tuiCmd = &cobra.Command{ Use: "tui", Short: "launch the terminal UI", RunE: runTUI, } func init() { rootCmd.AddCommand(tuiCmd) } func runTUI(_ *cobra.Command, _ []string) error { store, err := openStore() if err != nil { return err } defer store.Close() return tui.Run(store) }