menuentry

package
v1.11.4 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2019 License: GPL-2.0, GPL-2.0-or-later Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const Man = "NOP command for script compatibility\n"

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Menus []Entry
}

func (Command) Apropos

func (Command) Apropos() lang.Alt

func (*Command) Block

func (c *Command) Block(g *goes.Goes, ls shellutils.List) (*shellutils.List, func(stdin io.Reader, stdout io.Writer, stderr io.Writer, isFirst bool, isLast bool) error, error)

func (Command) Main

func (Command) Main(args ...string) error

func (*Command) Man

func (c *Command) Man() lang.Alt

func (Command) String

func (Command) String() string

func (Command) Usage

func (Command) Usage() string

type Entry

type Entry struct {
	Name   string
	RunFun func(stdin io.Reader, stdout io.Writer, stderr io.Writer, isFirst bool, isLast bool) error
}

Jump to

Keyboard shortcuts

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