clidaemon

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "clidaemon"

Variables

This section is empty.

Functions

This section is empty.

Types

type CLIOptions

type CLIOptions struct {
	ConfigFile string `short:"c" long:"config" description:"config file" default:"config.yaml"`
}

type CliFunc added in v1.13.0

type CliFunc func()

type Config

type Config struct {
	Name        string `env:"CLI_DAEMON_NAME" default:"solar" yaml:"name"`
	Description string `env:"CLI_DAEMON_DESCRIPTION" yaml:"description"`
}

type Plugin

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

func New

func New() *Plugin

func (*Plugin) Boot

func (cliD *Plugin) Boot(conf interface{}, dependencies ...interface{}) plugins.Plugin

func (*Plugin) Close

func (cliD *Plugin) Close() error

func (*Plugin) IsEnabled

func (cliD *Plugin) IsEnabled() bool

func (*Plugin) Name

func (cliD *Plugin) Name() string

func (*Plugin) ParseFlags

func (cliD *Plugin) ParseFlags(opts interface{}, args []string) ([]string, error)

func (*Plugin) Register added in v1.13.0

func (cliD *Plugin) Register(arg string, f CliFunc)

func (*Plugin) Run added in v1.13.0

func (cliD *Plugin) Run() error

func (*Plugin) Start

func (cliD *Plugin) Start() error

Jump to

Keyboard shortcuts

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