krabcli

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Ui       cli.UI
	CLI      *mcli.CLI
	Config   *krab.Config
	Registry *krab.CmdRegistry
	// contains filtered or unexported fields
}

func New

func New(
	ui cli.UI,
	args []string,
	config *krab.Config,
	registry *krab.CmdRegistry,
	connection krabdb.Connection,
) *App

func (*App) RegisterAll

func (a *App) RegisterAll()

func (*App) RegisterCmd

func (a *App) RegisterCmd(names string, cmd func() Command)

func (*App) Run

func (a *App) Run() (int, error)

type CmdAgent added in v0.5.0

type CmdAgent struct {
	Registry *krab.CmdRegistry
}

CmdAgent starts a web server

func (*CmdAgent) Help added in v0.5.0

func (a *CmdAgent) Help() string

func (*CmdAgent) Run added in v0.5.0

func (a *CmdAgent) Run(args []string) int

Run in CLI.

func (*CmdAgent) Synopsis added in v0.5.0

func (a *CmdAgent) Synopsis() string

type Command

type Command mcli.Command

Jump to

Keyboard shortcuts

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