Skip to content

Commit

Permalink
init gLogger (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
JunNishimura committed Jun 11, 2023
1 parent e614ca1 commit e972ce9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ import (
"runtime/debug"

"github.com/JunNishimura/Goit/internal/file"
"github.com/JunNishimura/Goit/internal/log"
"github.com/JunNishimura/Goit/internal/store"
"github.com/spf13/cobra"
)

var (
gLogger *log.GoitLogger
client *store.Client
goitVersion = ""
)
Expand Down Expand Up @@ -77,6 +79,8 @@ func init() {
}
client = store.NewClient(config, index, head, r, rootGoitPath)

gLogger = log.NewGoitLogger(client.RootGoitPath)

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

0 comments on commit e972ce9

Please sign in to comment.