Skip to content

Commit

Permalink
make v2approve
Browse files Browse the repository at this point in the history
  • Loading branch information
xwjdsh committed Sep 15, 2022
1 parent b331176 commit 7570aac
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions testdata/godoc-v2.x.txt
Expand Up @@ -250,6 +250,13 @@ TYPES
type ActionFunc func(*Context) error
ActionFunc is the action to execute when no subcommands are specified

type ActionableFlag interface {
Flag
RunAction(*Context) error
}
ActionableFlag is an interface that wraps Flag interface and RunAction
operation.

type AfterFunc func(*Context) error
AfterFunc is an action to execute after any subcommands are run, but after
the subcommand has finished it is run even if Action() panics
Expand Down Expand Up @@ -491,6 +498,9 @@ func (f *BoolFlag) IsVisible() bool
func (f *BoolFlag) Names() []string
Names returns the names of the flag

func (f *BoolFlag) RunAction(c *Context) error
RunAction executes flag action if set

func (f *BoolFlag) String() string
String returns a readable representation of this value (for usage defaults)

Expand Down Expand Up @@ -798,6 +808,9 @@ func (f *DurationFlag) IsVisible() bool
func (f *DurationFlag) Names() []string
Names returns the names of the flag

func (f *DurationFlag) RunAction(c *Context) error
RunAction executes flag action if set

func (f *DurationFlag) String() string
String returns a readable representation of this value (for usage defaults)

Expand Down Expand Up @@ -971,6 +984,9 @@ func (f *Float64Flag) IsVisible() bool
func (f *Float64Flag) Names() []string
Names returns the names of the flag

func (f *Float64Flag) RunAction(c *Context) error
RunAction executes flag action if set

func (f *Float64Flag) String() string
String returns a readable representation of this value (for usage defaults)

Expand Down Expand Up @@ -1056,6 +1072,9 @@ func (f *Float64SliceFlag) IsVisible() bool
func (f *Float64SliceFlag) Names() []string
Names returns the names of the flag

func (f *Float64SliceFlag) RunAction(c *Context) error
RunAction executes flag action if set

func (f *Float64SliceFlag) SetDestination(slice []float64)

func (f *Float64SliceFlag) SetValue(slice []float64)
Expand Down Expand Up @@ -1129,6 +1148,9 @@ func (f *GenericFlag) IsVisible() bool
func (f *GenericFlag) Names() []string
Names returns the names of the flag

func (f *GenericFlag) RunAction(c *Context) error
RunAction executes flag action if set

func (f *GenericFlag) String() string
String returns a readable representation of this value (for usage defaults)

Expand Down Expand Up @@ -1191,6 +1213,9 @@ func (f *Int64Flag) IsVisible() bool
func (f *Int64Flag) Names() []string
Names returns the names of the flag

func (f *Int64Flag) RunAction(c *Context) error
RunAction executes flag action if set

func (f *Int64Flag) String() string
String returns a readable representation of this value (for usage defaults)

Expand Down Expand Up @@ -1276,6 +1301,9 @@ func (f *Int64SliceFlag) IsVisible() bool
func (f *Int64SliceFlag) Names() []string
Names returns the names of the flag

func (f *Int64SliceFlag) RunAction(c *Context) error
RunAction executes flag action if set

func (f *Int64SliceFlag) SetDestination(slice []int64)

func (f *Int64SliceFlag) SetValue(slice []int64)
Expand Down Expand Up @@ -1342,6 +1370,9 @@ func (f *IntFlag) IsVisible() bool
func (f *IntFlag) Names() []string
Names returns the names of the flag

func (f *IntFlag) RunAction(c *Context) error
RunAction executes flag action if set

func (f *IntFlag) String() string
String returns a readable representation of this value (for usage defaults)

Expand Down Expand Up @@ -1431,6 +1462,9 @@ func (f *IntSliceFlag) IsVisible() bool
func (f *IntSliceFlag) Names() []string
Names returns the names of the flag

func (f *IntSliceFlag) RunAction(c *Context) error
RunAction executes flag action if set

func (f *IntSliceFlag) SetDestination(slice []int)

func (f *IntSliceFlag) SetValue(slice []int)
Expand Down Expand Up @@ -1531,6 +1565,9 @@ func (f *PathFlag) IsVisible() bool
func (f *PathFlag) Names() []string
Names returns the names of the flag

func (f *PathFlag) RunAction(c *Context) error
RunAction executes flag action if set

func (f *PathFlag) String() string
String returns a readable representation of this value (for usage defaults)

Expand Down Expand Up @@ -1668,6 +1705,9 @@ func (f *StringFlag) IsVisible() bool
func (f *StringFlag) Names() []string
Names returns the names of the flag

func (f *StringFlag) RunAction(c *Context) error
RunAction executes flag action if set

func (f *StringFlag) String() string
String returns a readable representation of this value (for usage defaults)

Expand Down Expand Up @@ -1755,6 +1795,9 @@ func (f *StringSliceFlag) IsVisible() bool
func (f *StringSliceFlag) Names() []string
Names returns the names of the flag

func (f *StringSliceFlag) RunAction(c *Context) error
RunAction executes flag action if set

func (f *StringSliceFlag) SetDestination(slice []string)

func (f *StringSliceFlag) SetValue(slice []string)
Expand Down Expand Up @@ -1856,6 +1899,9 @@ func (f *TimestampFlag) IsVisible() bool
func (f *TimestampFlag) Names() []string
Names returns the names of the flag

func (f *TimestampFlag) RunAction(c *Context) error
RunAction executes flag action if set

func (f *TimestampFlag) String() string
String returns a readable representation of this value (for usage defaults)

Expand Down Expand Up @@ -1918,6 +1964,9 @@ func (f *Uint64Flag) IsVisible() bool
func (f *Uint64Flag) Names() []string
Names returns the names of the flag

func (f *Uint64Flag) RunAction(c *Context) error
RunAction executes flag action if set

func (f *Uint64Flag) String() string
String returns a readable representation of this value (for usage defaults)

Expand Down Expand Up @@ -2063,6 +2112,9 @@ func (f *UintFlag) IsVisible() bool
func (f *UintFlag) Names() []string
Names returns the names of the flag

func (f *UintFlag) RunAction(c *Context) error
RunAction executes flag action if set

func (f *UintFlag) String() string
String returns a readable representation of this value (for usage defaults)

Expand Down

0 comments on commit 7570aac

Please sign in to comment.