Skip to content

Commit

Permalink
style(cli): accordin name function to the name of subcommands
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaelVallenet committed Jan 5, 2023
1 parent e565484 commit de57893
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/cmd/pathwar/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ func eventsCommand() *ffcli.Command {
Options: []ff.Option{ff.WithEnvVarNoPrefix()},
Exec: func(ctx context.Context, args []string) error { return flag.ErrHelp },
Subcommands: []*ffcli.Command{
eventsSourcing(),
eventsStart(),
eventsRebuild(),
},
}
}

func eventsSourcing() *ffcli.Command {
func eventsStart() *ffcli.Command {
eventsSourcingFlags := flag.NewFlagSet("start", flag.ExitOnError)
eventsSourcingFlags.IntVar(&esOpts.RefreshRate, "refresh-rate", esOpts.RefreshRate, "refresh rate in seconds")

Expand Down

0 comments on commit de57893

Please sign in to comment.