Skip to content

Commit

Permalink
Fix broken config init.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Mar 13, 2024
1 parent 96ecce0 commit 64c1b1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var (
efs embed.FS
)

func initConfig() {
func initConfig(ko *koanf.Koanf) {
lo.Info("buildstring", "value", buildString)

// Command line flags.
Expand Down
2 changes: 2 additions & 0 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ var (
)

func main() {
initConfig(ko)

if ko.Bool("version") {
lo.Info("version", "value", buildString)
os.Exit(0)
Expand Down

0 comments on commit 64c1b1c

Please sign in to comment.