internal

package
v0.0.0-...-89665df Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: BSD-3-Clause Imports: 3 Imported by: 0

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

Jump to

Keyboard shortcuts

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