@@ -51,9 +51,7 @@ OPTIONS:{{template "visibleFlagTemplate" .}}{{end}}
51
51
uses text/template to render templates. You can render custom help text by
52
52
setting this variable.
53
53
54
- var (
55
- DefaultInverseBoolPrefix = "no-"
56
- )
54
+ var DefaultInverseBoolPrefix = "no-"
57
55
var ErrWriter io.Writer = os.Stderr
58
56
ErrWriter is used to write errors to the user. This can be anything
59
57
implementing the io.Writer interface and defaults to os.Stderr.
@@ -270,21 +268,23 @@ type BoolWithInverseFlag struct {
270
268
// Has unexported fields.
271
269
}
272
270
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
274
274
275
- func (s *BoolWithInverseFlag) Flags () []Flag
275
+ func (parent *BoolWithInverseFlag) IsSet () bool
276
276
277
- func (s *BoolWithInverseFlag) IsSet () bool
277
+ func (parent *BoolWithInverseFlag) Names () []string
278
278
279
- func (s *BoolWithInverseFlag) Names() []string
279
+ func (parent *BoolWithInverseFlag) RunAction(ctx context.Context, cmd *Command) error
280
280
281
- func (s *BoolWithInverseFlag) RunAction(ctx context.Context, cmd *Command) error
281
+ func (parent *BoolWithInverseFlag) String() string
282
+ String implements the standard Stringer interface.
282
283
283
- func (s *BoolWithInverseFlag) String() string
284
284
Example for BoolFlag{Name: "env"} --env (default: false) || --no-env
285
285
(default: false)
286
286
287
- func (s *BoolWithInverseFlag) Value() bool
287
+ func (parent *BoolWithInverseFlag) Value() bool
288
288
289
289
type CategorizableFlag interface {
290
290
// Returns the category of the flag
@@ -425,7 +425,7 @@ func (cmd *Command) FlagNames() []string
425
425
its parent commands.
426
426
427
427
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
429
429
430
430
func (cmd *Command) FloatSlice(name string) []float64
431
431
FloatSlice looks up the value of a local FloatSliceFlag, returns nil if not
@@ -439,7 +439,7 @@ func (cmd *Command) HasName(name string) bool
439
439
HasName returns true if Command.Name matches given name
440
440
441
441
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
443
443
444
444
func (cmd *Command) IntSlice(name string) []int64
445
445
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 {
655
655
656
656
// Has unexported fields.
657
657
}
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
659
659
to implement the most common interfaces used by urfave/cli.
660
660
661
661
T specifies the type
0 commit comments