Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Group ¶
type Group struct {
// contains filtered or unexported fields
}
Group is tied to group command
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 Tokenize ¶
type Tokenize struct {
// contains filtered or unexported fields
}
Tokenize is tied to tokenize command
func NewTokenize ¶
func NewTokenize(args *tokenizeCommand) *Tokenize
NewTokenize creates an object related to tokenize command
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