termui.go
 1package commands
 2
 3import (
 4	"github.com/MichaelMure/git-bug/termui"
 5	"github.com/spf13/cobra"
 6)
 7
 8func runTermUI(cmd *cobra.Command, args []string) error {
 9	return termui.Run(repo)
10}
11
12var termUICmd = &cobra.Command{
13	Use:   "termui",
14	Short: "Launch the terminal UI",
15	RunE:  runTermUI,
16}
17
18func init() {
19	RootCmd.AddCommand(termUICmd)
20}