Skip to content

Commit

Permalink
add refs to client (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
JunNishimura committed Jun 4, 2023
1 parent 92870eb commit 31571aa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@ func init() {
fmt.Println(err)
os.Exit(1)
}
client = store.NewClient(config, index, head, rootGoitPath)
r, err := store.NewRefs(rootGoitPath)
if err != nil {
fmt.Println(err)
os.Exit(1)
}
client = store.NewClient(config, index, head, r, rootGoitPath)

rootCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
rootCmd.Flags().BoolP("version", "v", false, "Show Goit version")
Expand Down

0 comments on commit 31571aa

Please sign in to comment.