Skip to content

Commit

Permalink
Fix version info print
Browse files Browse the repository at this point in the history
  • Loading branch information
pgollangi committed Dec 30, 2022
1 parent 3494e14 commit 505bd05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ func init() {
RootCmd.Flags().StringP("service-account", "s", "", "Path to service account file to authenticate with Firestore")
RootCmd.Flags().IntP("limit", "l", 100, "Default limit to apply on SELECTed results. Set `0` to result unlimited.")

RootCmd.SetVersionTemplate(fmt.Sprintf("fireql version %s (%s)\nFor more info: github.com/pgollangi/FireQL\n", Version, Build))

err := RootCmd.MarkFlagRequired("project")
if err != nil {
panic(err)
}
}

func Execute() {
RootCmd.SetVersionTemplate(fmt.Sprintf("fireql version %s (%s)\nFor more info: github.com/pgollangi/FireQL\n", Version, Build))

err := RootCmd.Execute()
if err != nil {
printError(err)
Expand Down

0 comments on commit 505bd05

Please sign in to comment.