cli

package
v0.0.0-...-6bf8785 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseArgs

func ParseArgs(args []string) (*subcommand.SubCommand, error)

Types

type BoardCommandParser

type BoardCommandParser struct {
	// contains filtered or unexported fields
}

BoardCommandParser describe a parser for board subcommand.

func NewBoardCommandParser

func NewBoardCommandParser(tokenizer *Tokenizer) *BoardCommandParser

func (*BoardCommandParser) Parse

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func NewParser

func NewParser() *Parser

func (*Parser) Parse

func (p *Parser) Parse(args []string) (*subcommand.SubCommand, error)

type ProjectCommandParser

type ProjectCommandParser struct {
	// contains filtered or unexported fields
}

func NewProjectCommandParser

func NewProjectCommandParser(tokenizer *Tokenizer) *ProjectCommandParser

func (*ProjectCommandParser) Parse

type SubCommandParser

type SubCommandParser interface {
	Parse() subcommand.SubCommand
}

type Tokenizer

type Tokenizer struct {
	// contains filtered or unexported fields
}

func NewTokenizer

func NewTokenizer() *Tokenizer

func (*Tokenizer) HasNextToken

func (t *Tokenizer) HasNextToken() bool

func (*Tokenizer) NextToken

func (t *Tokenizer) NextToken() string

TBD: This method should be renamed to 'PopToken' as destructive method.

func (*Tokenizer) RestOfTokens

func (t *Tokenizer) RestOfTokens() []string

func (*Tokenizer) Tokenize

func (t *Tokenizer) Tokenize(args []string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL