Skip to content

Commit e31fd63

Browse files
changed api key local storage to OS credentials
1 parent 9739e70 commit e31fd63

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

cmd/commit-msg/main.go

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,22 @@
11
package main
22

3-
import cmd "github.com/dfanso/commit-msg/cmd/cli"
3+
import (
4+
"log"
5+
6+
cmd "github.com/dfanso/commit-msg/cmd/cli"
7+
"github.com/dfanso/commit-msg/cmd/cli/store"
8+
)
49

510
// main is the entry point of the commit message generator
611
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
719
cmd.Execute()
8-
}
20+
}
21+
22+

0 commit comments

Comments
 (0)