commands

package
v0.0.0-...-ba1c585 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2017 License: BSD-3-Clause Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Commands = []*cmdline.Command{
	cmdDump,
	cmdMakeDemo,
	cmdSelect,
	cmdSg,
	cmdAcl,
	cmdWatch,
	cmdDestroy,
}

Commands holds all the commands runnable at the top level (as $ sb foo) and in the shell, as: $ sb sh ? foo with the exception of shell builtins like help and quit. Adding a command to Commands will make it accessible by either mechanism.

Functions

func GetCommand

func GetCommand(name string) (*cmdline.Command, error)

func PrintUsage

func PrintUsage(command *cmdline.Command)

func SbRunner

func SbRunner(handler sbHandler) cmdline.Runner

func SetCtx

func SetCtx(ctx *context.T)

func SetDB

func SetDB(db syncbase.Database)

Types

This section is empty.

Jump to

Keyboard shortcuts

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