iotex-core: github.com/iotexproject/iotex-core/ioctl/flag Index | Files

package flag

import "github.com/iotexproject/iotex-core/ioctl/flag"

Index

Package Files

flag.go

type Flag Uses

type Flag interface {
    Label() string
    RegisterCommand(*cobra.Command)
    Value() interface{}
    MarkFlagRequired(*cobra.Command)
}

Flag defines a cobra command flag

func BoolVarP Uses

func BoolVarP(
    label string,
    shortLabel string,
    defaultValue bool,
    description string,
) Flag

BoolVarP creates a new stringVarP flag

func NewStringVarP Uses

func NewStringVarP(
    label string,
    shortLabel string,
    defaultValue string,
    description string,
) Flag

NewStringVarP creates a new stringVarP flag

func NewUint64VarP Uses

func NewUint64VarP(
    label string,
    shortLabel string,
    defaultValue uint64,
    description string,
) Flag

NewUint64VarP creates a new uint64VarP flag

Package flag imports 1 packages (graph) and is imported by 1 packages. Updated 2019-08-21. Refresh now. Tools for package owners.