Skip to content

Commit

Permalink
move more stuff around
Browse files Browse the repository at this point in the history
  • Loading branch information
jippi committed Feb 27, 2024
1 parent 96eb2b5 commit d518eba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ func NewRootCommand() (*cobra.Command) {
root.AddCommand(groups.NewCommand())
root.AddCommand(json.NewCommand())

root.PersistentFlags().StringP("file", "f", ".env", "Load this file")

return root
}

Expand All @@ -80,6 +78,7 @@ func RunCommand(ctx context.Context, args []string, stdout io.Writer, stderr io.
root.SetContext(ctx)
root.SetErr(stderr)
root.SetOut(stdout)
root.PersistentFlags().StringP("file", "f", ".env", "Load this file")
root.SetVersionTemplate(`{{ .Version }}`)

command, err := root.ExecuteC()
Expand Down

0 comments on commit d518eba

Please sign in to comment.