krabcli

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2021 License: MIT Imports: 6 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
	// contains filtered or unexported fields
}

func New

func New(
	ui cli.UI,
	args []string,
	config *krab.Config,
	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 Command

type Command mcli.Command

Jump to

Keyboard shortcuts

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