We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9739e70 commit e31fd63Copy full SHA for e31fd63
1 file changed
cmd/commit-msg/main.go
@@ -1,8 +1,22 @@
1
package main
2
3
-import cmd "github.com/dfanso/commit-msg/cmd/cli"
+import (
4
+ "log"
5
+
6
+ cmd "github.com/dfanso/commit-msg/cmd/cli"
7
+ "github.com/dfanso/commit-msg/cmd/cli/store"
8
+)
9
10
// main is the entry point of the commit message generator
11
func main() {
12
13
+ //Initializes the OS credential manager
14
+ KeyRing, err := store.KeyringInit()
15
+ if err != nil {
16
+ log.Fatalf("Failed to initilize Keyring store: %v", err)
17
+ }
18
+ cmd.StoreInit(KeyRing) //Passes StoreMethods instance to root
19
cmd.Execute()
-}
20
21
22
0 commit comments