Documentation
¶
Index ¶
Constants ¶
View Source
const Version = "0.6.1"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandlerFuncType ¶
Type of handler for command.
type Parser ¶
Tap - Terminal Argument Parsing ¶
This parser - main object in tap.
Main methods:
- AddCommand(name string, handler HandlerFuncType)
- Main() - start parser
func NewParser ¶
func NewParser(cli_name string, about string, help_commands []string, config ParserConfig) *Parser
Create Parser object.
func (*Parser) AddCommand ¶
func (p *Parser) AddCommand( name string, handler HandlerFuncType, docs string, required_args []string, optional_args []string, unlimited_max_args bool, )
Add command to parser.
type ParserConfig ¶
type ParserConfig struct {
// contains filtered or unexported fields
}
Configuration of Parser
func NewParserConfig ¶
func NewParserConfig( help_command_block_fmt string, help_args_header_block_fmt string, help_args_data_block_fmt string, help_docs_header_block_fmt string, help_docs_data_block_fmt string, help_end_block_fmt string, ) ParserConfig
Create config for parser
Click to show internal directories.
Click to hide internal directories.