grub

package
v1.13.12 Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: GPL-2.0, GPL-2.0-or-later Imports: 37 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cli = &cli.Command{}
View Source
var ErrNoDefinedKernelOrMenus = errors.New("No defined kernel or menus")
View Source
var Goes = &goes.Goes{
	NAME: "grub",
	APROPOS: lang.Alt{
		lang.EnUS: "execute a grub configuration file",
	},
	ByName: map[string]cmd.Cmd{
		"background_color": nop.Command{C: "background_color"},
		"background_image": nop.Command{C: "background_image"},
		"clear":            nop.Command{C: "clear"},
		"cli":              Cli,
		"echo":             echo.Command{},
		"else":             &elsecmd.Command{},
		"export":           nop.Command{C: "export"},
		"false":            falsecmd.Command{},
		"fi":               &ficmd.Command{},
		"function":         &function.Command{},
		"gfxmode":          nop.Command{C: "gfxmode"},
		"if":               &ifcmd.Command{},
		"initrd":           Initrd,
		"insmod":           nop.Command{C: "insmod"},
		"linux":            Linux,
		"loadfont":         nop.Command{C: "loadfont"},
		"menuentry":        menuEntry,
		"play":             nop.Command{C: "play"},
		"recordfail":       nop.Command{C: "recordfail"},
		"search":           &search.Command{},
		"set":              &set.Command{},
		"submenu":          subMenu,
		"[":                testcmd.Command{},
		"terminal_output":  nop.Command{C: "terminal_output"},
		"then":             &thencmd.Command{},
		"true":             truecmd.Command{},
	},
}
View Source
var Initrd = &initrd.Command{}
View Source
var Linux = &linux.Command{}

Functions

This section is empty.

Types

type Command

type Command struct {
	// contains filtered or unexported fields
}

func (*Command) Apropos

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

func (*Command) AskKernel

func (c *Command) AskKernel(parm *parms.Parms, flag *flags.Flags) (err error)

func (*Command) GetRoot

func (c *Command) GetRoot() string

func (*Command) Goes added in v1.13.5

func (c *Command) Goes(g *goes.Goes)

func (*Command) KexecCommand

func (c *Command) KexecCommand() []string

func (*Command) Main

func (c *Command) Main(args ...string) (err error)

func (*Command) Read added in v1.13.6

func (c *Command) Read(p []byte) (n int, err error)

func (*Command) RunMenu

func (c *Command) RunMenu(m *menu.Menu, parm *parms.Parms, flag *flags.Flags) (err error)

func (*Command) ServeMenus

func (c *Command) ServeMenus(n string)

func (*Command) String

func (c *Command) String() string

func (*Command) Usage

func (c *Command) Usage() string

func (*Command) Write added in v1.13.6

func (c *Command) Write(p []byte) (n int, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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