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 //time.Sleep(10 * time.Second)
10 return termui.Run(repo)
11}
12
13var termUICmd = &cobra.Command{
14 Use: "termui",
15 Short: "Launch the terminal UI",
16 RunE: runTermUI,
17}
18
19func init() {
20 RootCmd.AddCommand(termUICmd)
21}