Documentation
¶
Overview ¶
Implements the common flags used by multiple commands.
Index ¶
- func OptionalInt32(v int32) optional.Int32
- func OptionalInt64(v int64) optional.Int64
- func OptionalString(v string) optional.String
- type GlobalFlags
- type PagingFlags
- func (f *PagingFlags) OptionalLastToFirst() optional.Bool
- func (f *PagingFlags) OptionalPage() optional.Int32
- func (f *PagingFlags) OptionalPageSize() optional.Int32
- func (f *PagingFlags) RegisterPagingParams(flagSet *pflag.FlagSet)
- func (f *PagingFlags) RegisterPagingReverseParams(flagSet *pflag.FlagSet)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OptionalInt32 ¶
func OptionalInt64 ¶
func OptionalString ¶
Types ¶
type GlobalFlags ¶
type GlobalFlags struct { PagingFlags ConfigFile string // Configuration file ChainId string // Chain ID ParamFile string // Param file }
This struct holds the global flags used by all or most commands.
var Flags GlobalFlags
func (*GlobalFlags) RegisterChainIdParameter ¶
func (f *GlobalFlags) RegisterChainIdParameter(flagSet *pflag.FlagSet)
func (*GlobalFlags) RegisterParamFileParameter ¶
func (f *GlobalFlags) RegisterParamFileParameter(flagSet *pflag.FlagSet)
func (*GlobalFlags) RequireChainId ¶
func (f *GlobalFlags) RequireChainId() error
func (*GlobalFlags) RequireParamFile ¶
func (f *GlobalFlags) RequireParamFile() error
type PagingFlags ¶
This struct holds the global flags used by all or most commands.
func (*PagingFlags) OptionalLastToFirst ¶
func (f *PagingFlags) OptionalLastToFirst() optional.Bool
func (*PagingFlags) OptionalPage ¶
func (f *PagingFlags) OptionalPage() optional.Int32
func (*PagingFlags) OptionalPageSize ¶
func (f *PagingFlags) OptionalPageSize() optional.Int32
func (*PagingFlags) RegisterPagingParams ¶
func (f *PagingFlags) RegisterPagingParams(flagSet *pflag.FlagSet)
func (*PagingFlags) RegisterPagingReverseParams ¶
func (f *PagingFlags) RegisterPagingReverseParams(flagSet *pflag.FlagSet)
Click to show internal directories.
Click to hide internal directories.