cmd

package
v0.0.0-...-784cda0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2018 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeCompleters

func InitializeCompleters() map[string]*readline.Instance

Types

type CmdInfo

type CmdInfo struct {
	MenuType      string
	Items         map[string]*MenuItem
	TabCompleters map[string]*readline.Instance
	HttpServer    *servers.HttpServer
	DnsServer     *servers.DnsServer
}

CmdInfo holds all commands for a menu

func (*CmdInfo) DnsKeyMenu

func (c *CmdInfo) DnsKeyMenu()

func (*CmdInfo) DnsMenu

func (c *CmdInfo) DnsMenu()

func (*CmdInfo) HttpKeyMenu

func (c *CmdInfo) HttpKeyMenu()

func (*CmdInfo) HttpMenu

func (c *CmdInfo) HttpMenu()

func (*CmdInfo) MainMenu

func (c *CmdInfo) MainMenu()
type MenuItem struct {
	Help      string
	Example   string
	Error     string
	Completer *readline.PrefixCompleter
}

MenuItem describes each command, help and usage, and completion

type MenuItems struct {
	MenuType  string
	Items     map[string]*MenuItem
	Completer *readline.PrefixCompleter
}

MenuItems holds all commands for a menu

Jump to

Keyboard shortcuts

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