Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextKey ¶
type ContextKey string
ContextKey stores the key required to retreve the paired value
func (ContextKey) String ¶
func (key ContextKey) String() string
type SubCommand ¶
type SubCommand struct { Help *seabird.HelpInfo // contains filtered or unexported fields }
SubCommand hold help information and routes sub-commands
func NewSubCommand ¶
func NewSubCommand(handler seabird.HandlerFunc, help *seabird.HelpInfo) *SubCommand
NewSubCommand returns a new sub-command with the passed handler and help info
func (*SubCommand) AddSubCommand ¶
func (s *SubCommand) AddSubCommand(cmd string, handler seabird.HandlerFunc, help *seabird.HelpInfo) *SubCommand
AddSubCommand adds a sub-command to the sub-command
func (*SubCommand) Handler ¶
func (s *SubCommand) Handler(r *seabird.Request)
Handler will handle help or list commands and pass all the others to the appropriate handler
Click to show internal directories.
Click to hide internal directories.