aboutsummaryrefslogtreecommitdiffstats
path: root/commands/termui.go
blob: 6f3ba5efe4bb137ef3bcb1afa0eba45bcd9131f9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package commands

import (
	"github.com/MichaelMure/git-bug/termui"
	"github.com/spf13/cobra"
)

func runTermUI(cmd *cobra.Command, args []string) error {
	//time.Sleep(10 * time.Second)
	return termui.Run(repo)
}

var termUICmd = &cobra.Command{
	Use:   "termui",
	Short: "Launch the terminal UI",
	RunE:  runTermUI,
}

func init() {
	RootCmd.AddCommand(termUICmd)
}