Documentation ¶
Index ¶
- func Fixed8FromContext(ctx *cli.Context, name string) fixedn.Fixed8
- func ParseAddress(s string) (util.Uint160, error)
- type Address
- type AddressFlag
- func (f AddressFlag) Apply(set *flag.FlagSet) error
- func (f AddressFlag) Get(ctx *cli.Context) Address
- func (f AddressFlag) GetUsage() string
- func (f AddressFlag) GetValue() string
- func (f AddressFlag) IsRequired() bool
- func (f AddressFlag) IsSet() bool
- func (f AddressFlag) IsVisible() bool
- func (f AddressFlag) Names() []string
- func (f AddressFlag) RunAction(c *cli.Context) error
- func (f AddressFlag) String() string
- func (f AddressFlag) TakesValue() bool
- type Fixed8
- type Fixed8Flag
- func (f Fixed8Flag) Apply(set *flag.FlagSet) error
- func (f Fixed8Flag) Get(ctx *cli.Context) Fixed8
- func (f Fixed8Flag) GetUsage() string
- func (f Fixed8Flag) GetValue() string
- func (f Fixed8Flag) IsRequired() bool
- func (f Fixed8Flag) IsSet() bool
- func (f Fixed8Flag) IsVisible() bool
- func (f Fixed8Flag) Names() []string
- func (f Fixed8Flag) RunAction(c *cli.Context) error
- func (f Fixed8Flag) String() string
- func (f Fixed8Flag) TakesValue() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fixed8FromContext ¶
Fixed8FromContext returns a parsed util.Fixed8 value provided flag name.
Types ¶
type Address ¶
Address is a wrapper for a Uint160 with flag.Value methods.
type AddressFlag ¶
type AddressFlag struct { Name string Usage string Value Address Aliases []string Required bool Hidden bool Action func(*cli.Context, string) error }
AddressFlag is a flag with type Uint160.
func (AddressFlag) Apply ¶
func (f AddressFlag) Apply(set *flag.FlagSet) error
Apply populates the flag given the flag set and environment. Ignores errors.
func (AddressFlag) Get ¶ added in v0.106.3
func (f AddressFlag) Get(ctx *cli.Context) Address
Get returns the flag’s value in the given Context.
func (AddressFlag) GetUsage ¶ added in v0.106.3
func (f AddressFlag) GetUsage() string
GetUsage returns the usage string for the flag.
func (AddressFlag) GetValue ¶ added in v0.106.3
func (f AddressFlag) GetValue() string
GetValue returns the flags value as string representation.
func (AddressFlag) IsRequired ¶ added in v0.106.3
func (f AddressFlag) IsRequired() bool
IsRequired returns whether the flag is required.
func (AddressFlag) IsSet ¶
func (f AddressFlag) IsSet() bool
IsSet checks if flag was set to a non-default value.
func (AddressFlag) IsVisible ¶ added in v0.106.3
func (f AddressFlag) IsVisible() bool
IsVisible returns true if the flag is not hidden, otherwise false.
func (AddressFlag) Names ¶ added in v0.106.3
func (f AddressFlag) Names() []string
Names returns the names of the flag.
func (AddressFlag) RunAction ¶ added in v0.106.3
func (f AddressFlag) RunAction(c *cli.Context) error
RunAction executes flag action if set.
func (AddressFlag) String ¶
func (f AddressFlag) String() string
String returns a readable representation of this value (for usage defaults).
func (AddressFlag) TakesValue ¶ added in v0.106.3
func (f AddressFlag) TakesValue() bool
TakesValue returns true of the flag takes a value, otherwise false.
type Fixed8 ¶
Fixed8 is a wrapper for a Uint160 with flag.Value methods.
type Fixed8Flag ¶
type Fixed8Flag struct { Name string Usage string Value Fixed8 Aliases []string Required bool Hidden bool Action func(*cli.Context, string) error }
Fixed8Flag is a flag with type string.
func (Fixed8Flag) Apply ¶
func (f Fixed8Flag) Apply(set *flag.FlagSet) error
Apply populates the flag given the flag set and environment. Ignores errors.
func (Fixed8Flag) Get ¶ added in v0.106.3
func (f Fixed8Flag) Get(ctx *cli.Context) Fixed8
Get returns the flag’s value in the given Context.
func (Fixed8Flag) GetUsage ¶ added in v0.106.3
func (f Fixed8Flag) GetUsage() string
GetUsage returns the usage string for the flag.
func (Fixed8Flag) GetValue ¶ added in v0.106.3
func (f Fixed8Flag) GetValue() string
GetValue returns the flags value as string representation.
func (Fixed8Flag) IsRequired ¶ added in v0.106.3
func (f Fixed8Flag) IsRequired() bool
IsRequired returns whether the flag is required.
func (Fixed8Flag) IsSet ¶ added in v0.106.3
func (f Fixed8Flag) IsSet() bool
IsSet checks if flag was set to a non-default value.
func (Fixed8Flag) IsVisible ¶ added in v0.106.3
func (f Fixed8Flag) IsVisible() bool
IsVisible returns true if the flag is not hidden, otherwise false.
func (Fixed8Flag) Names ¶ added in v0.106.3
func (f Fixed8Flag) Names() []string
Names returns the names of the flag.
func (Fixed8Flag) RunAction ¶ added in v0.106.3
func (f Fixed8Flag) RunAction(c *cli.Context) error
RunAction executes flag action if set.
func (Fixed8Flag) String ¶
func (f Fixed8Flag) String() string
String returns a readable representation of this value (for usage defaults).
func (Fixed8Flag) TakesValue ¶ added in v0.106.3
func (f Fixed8Flag) TakesValue() bool
TakesValue returns true if the flag takes a value, otherwise false.