Documentation ¶
Overview ¶
Package bbmain is the package imported by all rewritten busybox command-packages to register themselves.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrNotRegistered = errors.New("command not registered")
ErrNotRegistered is returned by Run if the given command is not registered.
var Noop = func() {}
Noop is a noop function.
Functions ¶
func ListCmds ¶
func ListCmds()
ListCmds lists bb commands and verifies symlinks. It is by convention called when the bb command is invoked directly. For every command, there should be a symlink in /bbin, and for every symlink, there should be a command. Occasionally, we have bugs that result in one of these being false. Just running bb is an easy way to tell if something in your image is messed up.
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.