Skip to content

Commit 2df7fe4

Browse files
committed
update godoc-current
1 parent 66278a0 commit 2df7fe4

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

godoc-current.txt

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ OPTIONS:{{template "visibleFlagTemplate" .}}{{end}}
5151
uses text/template to render templates. You can render custom help text by
5252
setting this variable.
5353

54-
var (
55-
DefaultInverseBoolPrefix = "no-"
56-
)
54+
var DefaultInverseBoolPrefix = "no-"
5755
var ErrWriter io.Writer = os.Stderr
5856
ErrWriter is used to write errors to the user. This can be anything
5957
implementing the io.Writer interface and defaults to os.Stderr.
@@ -270,21 +268,23 @@ type BoolWithInverseFlag struct {
270268
// Has unexported fields.
271269
}
272270

273-
func (s *BoolWithInverseFlag) Apply(set *flag.FlagSet) error
271+
func (parent *BoolWithInverseFlag) Apply(set *flag.FlagSet) error
272+
273+
func (parent *BoolWithInverseFlag) Flags() []Flag
274274

275-
func (s *BoolWithInverseFlag) Flags() []Flag
275+
func (parent *BoolWithInverseFlag) IsSet() bool
276276

277-
func (s *BoolWithInverseFlag) IsSet() bool
277+
func (parent *BoolWithInverseFlag) Names() []string
278278

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

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

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

287-
func (s *BoolWithInverseFlag) Value() bool
287+
func (parent *BoolWithInverseFlag) Value() bool
288288

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

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

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

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

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

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

661661
T specifies the type

testdata/godoc-v3.x.txt

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ OPTIONS:{{template "visibleFlagTemplate" .}}{{end}}
5151
uses text/template to render templates. You can render custom help text by
5252
setting this variable.
5353

54-
var (
55-
DefaultInverseBoolPrefix = "no-"
56-
)
54+
var DefaultInverseBoolPrefix = "no-"
5755
var ErrWriter io.Writer = os.Stderr
5856
ErrWriter is used to write errors to the user. This can be anything
5957
implementing the io.Writer interface and defaults to os.Stderr.
@@ -270,21 +268,23 @@ type BoolWithInverseFlag struct {
270268
// Has unexported fields.
271269
}
272270

273-
func (s *BoolWithInverseFlag) Apply(set *flag.FlagSet) error
271+
func (parent *BoolWithInverseFlag) Apply(set *flag.FlagSet) error
272+
273+
func (parent *BoolWithInverseFlag) Flags() []Flag
274274

275-
func (s *BoolWithInverseFlag) Flags() []Flag
275+
func (parent *BoolWithInverseFlag) IsSet() bool
276276

277-
func (s *BoolWithInverseFlag) IsSet() bool
277+
func (parent *BoolWithInverseFlag) Names() []string
278278

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

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

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

287-
func (s *BoolWithInverseFlag) Value() bool
287+
func (parent *BoolWithInverseFlag) Value() bool
288288

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

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

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

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

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

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

661661
T specifies the type

0 commit comments

Comments
 (0)