item

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdActivator

type CmdActivator struct {
	Out io.Writer
	// contains filtered or unexported fields
}

func (*CmdActivator) Activate

func (c *CmdActivator) Activate(item *Item)

type Item

type Item struct {
	Key    string
	Desc   string
	Items  []*Item
	Cmd    string
	Parent *Item
	Wd     string
}

func BashCmd

func BashCmd(key string) *Item

func (*Item) AddItem

func (i *Item) AddItem(item *Item)

func (*Item) CleanWd added in v0.6.0

func (i *Item) CleanWd() string

func (*Item) GetDesc

func (i *Item) GetDesc() string

func (*Item) GetInMenuDesc

func (i *Item) GetInMenuDesc() string

func (*Item) GetItem

func (i *Item) GetItem(key string) (*Item, error)

func (*Item) IsCmd

func (i *Item) IsCmd() bool
type MenuPrinter struct {
	Out io.Writer
	// contains filtered or unexported fields
}
func (m *MenuPrinter) Print(item *Item, keys settings.Keys)

Jump to

Keyboard shortcuts

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