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
Click to show internal directories.
Click to hide internal directories.