Skip to content

Commit

Permalink
update godoc-current
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekpacia committed May 1, 2024
1 parent 66278a0 commit 2df7fe4
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
26 changes: 13 additions & 13 deletions godoc-current.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ OPTIONS:{{template "visibleFlagTemplate" .}}{{end}}
uses text/template to render templates. You can render custom help text by
setting this variable.

var (
DefaultInverseBoolPrefix = "no-"
)
var DefaultInverseBoolPrefix = "no-"
var ErrWriter io.Writer = os.Stderr
ErrWriter is used to write errors to the user. This can be anything
implementing the io.Writer interface and defaults to os.Stderr.
Expand Down Expand Up @@ -270,21 +268,23 @@ type BoolWithInverseFlag struct {
// Has unexported fields.
}

func (s *BoolWithInverseFlag) Apply(set *flag.FlagSet) error
func (parent *BoolWithInverseFlag) Apply(set *flag.FlagSet) error

func (parent *BoolWithInverseFlag) Flags() []Flag

func (s *BoolWithInverseFlag) Flags() []Flag
func (parent *BoolWithInverseFlag) IsSet() bool

func (s *BoolWithInverseFlag) IsSet() bool
func (parent *BoolWithInverseFlag) Names() []string

func (s *BoolWithInverseFlag) Names() []string
func (parent *BoolWithInverseFlag) RunAction(ctx context.Context, cmd *Command) error

func (s *BoolWithInverseFlag) RunAction(ctx context.Context, cmd *Command) error
func (parent *BoolWithInverseFlag) String() string
String implements the standard Stringer interface.

func (s *BoolWithInverseFlag) String() string
Example for BoolFlag{Name: "env"} --env (default: false) || --no-env
(default: false)

func (s *BoolWithInverseFlag) Value() bool
func (parent *BoolWithInverseFlag) Value() bool

type CategorizableFlag interface {
// Returns the category of the flag
Expand Down Expand Up @@ -425,7 +425,7 @@ func (cmd *Command) FlagNames() []string
its parent commands.

func (cmd *Command) Float(name string) float64
Int looks up the value of a local IntFlag, returns 0 if not found
Float looks up the value of a local FloatFlag, returns 0 if not found

func (cmd *Command) FloatSlice(name string) []float64
FloatSlice looks up the value of a local FloatSliceFlag, returns nil if not
Expand All @@ -439,7 +439,7 @@ func (cmd *Command) HasName(name string) bool
HasName returns true if Command.Name matches given name

func (cmd *Command) Int(name string) int64
Int64 looks up the value of a local Int64Flag, returns 0 if not found
Int looks up the value of a local Int64Flag, returns 0 if not found

func (cmd *Command) IntSlice(name string) []int64
IntSlice looks up the value of a local IntSliceFlag, returns nil if not
Expand Down Expand Up @@ -655,7 +655,7 @@ type FlagBase[T any, C any, VC ValueCreator[T, C]] struct {

// Has unexported fields.
}
FlagBase[T,C,VC] is a generic flag base which can be used as a boilerplate
FlagBase [T,C,VC] is a generic flag base which can be used as a boilerplate
to implement the most common interfaces used by urfave/cli.

T specifies the type
Expand Down
26 changes: 13 additions & 13 deletions testdata/godoc-v3.x.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ OPTIONS:{{template "visibleFlagTemplate" .}}{{end}}
uses text/template to render templates. You can render custom help text by
setting this variable.

var (
DefaultInverseBoolPrefix = "no-"
)
var DefaultInverseBoolPrefix = "no-"
var ErrWriter io.Writer = os.Stderr
ErrWriter is used to write errors to the user. This can be anything
implementing the io.Writer interface and defaults to os.Stderr.
Expand Down Expand Up @@ -270,21 +268,23 @@ type BoolWithInverseFlag struct {
// Has unexported fields.
}

func (s *BoolWithInverseFlag) Apply(set *flag.FlagSet) error
func (parent *BoolWithInverseFlag) Apply(set *flag.FlagSet) error

func (parent *BoolWithInverseFlag) Flags() []Flag

func (s *BoolWithInverseFlag) Flags() []Flag
func (parent *BoolWithInverseFlag) IsSet() bool

func (s *BoolWithInverseFlag) IsSet() bool
func (parent *BoolWithInverseFlag) Names() []string

func (s *BoolWithInverseFlag) Names() []string
func (parent *BoolWithInverseFlag) RunAction(ctx context.Context, cmd *Command) error

func (s *BoolWithInverseFlag) RunAction(ctx context.Context, cmd *Command) error
func (parent *BoolWithInverseFlag) String() string
String implements the standard Stringer interface.

func (s *BoolWithInverseFlag) String() string
Example for BoolFlag{Name: "env"} --env (default: false) || --no-env
(default: false)

func (s *BoolWithInverseFlag) Value() bool
func (parent *BoolWithInverseFlag) Value() bool

type CategorizableFlag interface {
// Returns the category of the flag
Expand Down Expand Up @@ -425,7 +425,7 @@ func (cmd *Command) FlagNames() []string
its parent commands.

func (cmd *Command) Float(name string) float64
Int looks up the value of a local IntFlag, returns 0 if not found
Float looks up the value of a local FloatFlag, returns 0 if not found

func (cmd *Command) FloatSlice(name string) []float64
FloatSlice looks up the value of a local FloatSliceFlag, returns nil if not
Expand All @@ -439,7 +439,7 @@ func (cmd *Command) HasName(name string) bool
HasName returns true if Command.Name matches given name

func (cmd *Command) Int(name string) int64
Int64 looks up the value of a local Int64Flag, returns 0 if not found
Int looks up the value of a local Int64Flag, returns 0 if not found

func (cmd *Command) IntSlice(name string) []int64
IntSlice looks up the value of a local IntSliceFlag, returns nil if not
Expand Down Expand Up @@ -655,7 +655,7 @@ type FlagBase[T any, C any, VC ValueCreator[T, C]] struct {

// Has unexported fields.
}
FlagBase[T,C,VC] is a generic flag base which can be used as a boilerplate
FlagBase [T,C,VC] is a generic flag base which can be used as a boilerplate
to implement the most common interfaces used by urfave/cli.

T specifies the type
Expand Down

0 comments on commit 2df7fe4

Please sign in to comment.