Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGroup ¶
func NewGroup(args *groupCommand) *group
NewGroup create an object related to group command
func NewTokenize ¶
func NewTokenize(args *tokenizeCommand) *tokenize
NewTokenize create an object related to tokenize command
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser represent a parser statement
func ParserWrapper ¶
func ParserWrapper(s *kingpin.ArgClause) (target *Parser)
ParserWrapper is used to transform argument from command line
type Positions ¶
type Positions struct {
// contains filtered or unexported fields
}
Positions is an array of position
func PositionsWrapper ¶
func PositionsWrapper(s kingpin.Settings) (target *Positions)
PositionsWrapper is used to transform argument from command line
type Sorters ¶
type Sorters struct {
// contains filtered or unexported fields
}
Sorters is a map of statement sort by position
func SortersWrapper ¶
func SortersWrapper(s kingpin.Settings) (target *Sorters)
SortersWrapper is used to transform argument from command line
func (*Sorters) ValidatePositions ¶
ValidatePositions against defined sorters
type Transformers ¶
type Transformers struct {
// contains filtered or unexported fields
}
Transformers is a map of statement sort by position
func TransformersWrapper ¶
func TransformersWrapper(s kingpin.Settings) (target *Transformers)
TransformersWrapper is used to transform argument from command line
func (*Transformers) IsCumulative ¶
func (t *Transformers) IsCumulative() bool
IsCumulative is used for repeated flags on cli
func (*Transformers) Set ¶
func (t *Transformers) Set(value string) error
Set is used to populate statement from string
func (*Transformers) ValidatePositions ¶
func (t *Transformers) ValidatePositions(positions *[]int) error
ValidatePositions against extracted transformers