Documentation
¶
Overview ¶
Package cli provides the entrypoint for runsc binaries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(sidecar *gvisorbinaries.Binary, commands map[util.SubCommand]string, helpTopics []subcommands.Command)
Run runs the binary, whose behavior is determined by the subcommand passed on the command line. `sidecar` is the calling sidecar binary, or `nil` when called by `runsc`. `commands` is a mapping of all top-level commands to their command group name. `helpTopics` is a list of additional help topics.
Types ¶
type Help ¶
type Help struct {
// contains filtered or unexported fields
}
Help implements subcommands.Command for the "help" command. The 'help' command prints help for commands registered to a Commander but also allows for registering additional help commands that print other documentation.
func NewHelp ¶
func NewHelp(cdr *subcommands.Commander) *Help
NewHelp returns a help command for the given commander.
func (*Help) Execute ¶
func (h *Help) Execute(ctx context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.
func (*Help) Register ¶
func (h *Help) Register(cmd subcommands.Command)
Register registers a new help command.