summaryrefslogtreecommitdiffstatshomepage
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/main.go b/main.go
index 7a2034bab..5b7a4caa6 100644
--- a/main.go
+++ b/main.go
@@ -4,9 +4,15 @@
package main
import (
+ "os"
+
"github.com/git-bug/git-bug/commands"
)
func main() {
- commands.Execute()
+ v, _ := getVersion()
+ root := commands.NewRootCommand(v)
+ if err := root.Execute(); err != nil {
+ os.Exit(1)
+ }
}