Documentation ¶
Overview ¶
Package bbmain is the package imported by all rewritten busybox command-packages to register themselves.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotRegistered = errors.New("command not registered")
ErrNotRegistered is returned by Run if the given command is not registered.
View Source
var Noop = func() {}
Noop is a noop function.
Functions ¶
func Register ¶
func Register(name string, init, main func())
Register registers an init and main function for name.
func RegisterDefault ¶
func RegisterDefault(init, main func())
RegisterDefault registers a default init and main function.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.