diff options
Diffstat (limited to 'commands')
-rw-r--r-- | commands/termui.go | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/commands/termui.go b/commands/termui.go new file mode 100644 index 00000000..6f3ba5ef --- /dev/null +++ b/commands/termui.go @@ -0,0 +1,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) +} |