aboutsummaryrefslogtreecommitdiffstats
path: root/commands/termui.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-07-30 17:00:10 +0200
committerMichael Muré <batolettre@gmail.com>2018-07-30 17:00:10 +0200
commitc0dbe70ee08db699a35d573ba09f7900fb959f92 (patch)
tree65f54a196aa7ed86ac2f5fa95b695a0152d03e5c /commands/termui.go
parente14f1b4264ec5196834db925202d9d9f93ac35c5 (diff)
downloadgit-bug-c0dbe70ee08db699a35d573ba09f7900fb959f92.tar.gz
wip terminal ui
Diffstat (limited to 'commands/termui.go')
-rw-r--r--commands/termui.go21
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)
+}