commands

package
v0.0.0-...-6a5f21d Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2015 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GlobalCapsuledDir  = filepath.Join("usr", "lib", "capsule", "libexec")
	GlobalCapsuledPath = filepath.Join(GlobalCapsuledDir, "capsuled")
)
View Source
var (
	// FIXME: the order of range call
	CommandsList map[string]*CapsuleCommand
)

Functions

func RegisterCommand

func RegisterCommand(command string, c *CapsuleCommand)

Types

type CapsuleCommand

type CapsuleCommand struct {
	Handler     CommandHander
	Description string
}

type CommandEnv

type CommandEnv struct {
	BaseCatalog *catalog.CatalogDir

	Logger *logrus.Logger
}

type CommandHander

type CommandHander func(args []string, cmdEnv *CommandEnv) error

Jump to

Keyboard shortcuts

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