Skip to content

Commit

Permalink
Rename FlagSetter to FlagsGetter (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
cristaloleg authored Sep 6, 2022
1 parent bf7d1f2 commit 1b0fa23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions acmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ type Command struct {

// FlagSet is an optional field where you can provide command's flags.
// Is used for autocomplete. Works best with https://github.com/cristalhq/flagx
FlagSet FlagSetter
FlagSet FlagsGetter
}

// FlagSetter returns flags for the command. See examples.
type FlagSetter interface {
// FlagsGetter returns flags for the command. See examples.
type FlagsGetter interface {
Flags() *flag.FlagSet
}

Expand Down

0 comments on commit 1b0fa23

Please sign in to comment.