krabcli

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 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,
	srv *web.Server,
) *App

func (*App) RegisterAll

func (a *App) RegisterAll(srv *web.Server)

func (*App) RegisterCmd

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

func (*App) Run

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

type Command

type Command mcli.Command

Jump to

Keyboard shortcuts

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