cli

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Name       string
	Controller Controller
	Help       string
}

func NewCommand

func NewCommand(name string, controller Controller, help string) *Command

func (*Command) FormatHelp

func (c *Command) FormatHelp() string

type Controller

type Controller func(args []string) cliKernelError.CliError

type Kernel

type Kernel struct {
	// contains filtered or unexported fields
}

func NewKernel

func NewKernel(configPath string) (*Kernel, error)

func (*Kernel) FormatHelp

func (k *Kernel) FormatHelp() string

func (*Kernel) GetContainer

func (k *Kernel) GetContainer() *gioc.Container

func (*Kernel) GetEventsRegistry

func (k *Kernel) GetEventsRegistry() *commonEventBus.EventsRegistry

func (*Kernel) GetHelp

func (k *Kernel) GetHelp() map[string]string

func (*Kernel) RegisterCommand

func (k *Kernel) RegisterCommand(command *Command)

func (*Kernel) RegisterListener

func (k *Kernel) RegisterListener(eventObj commonEvent.Event, listenerFunc interface{}, priority int) error

func (*Kernel) RegisterService

func (k *Kernel) RegisterService(alias string, factoryMethod interface{}, enableCaching bool) error

func (*Kernel) Run

func (k *Kernel) Run(args []string) cliKernelError.CliError

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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