lib

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: MIT Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BuildDate string
View Source
var Commit string
View Source
var OSBuildName string
View Source
var Version string

Functions

func NewLib

func NewLib() interfaces.Cli

Types

type Blankconfig

type Blankconfig struct {
}

Blankconfig -

type Modules

type Modules struct {
	Options interfaces.Options

	sync.RWMutex
	// contains filtered or unexported fields
}

func (*Modules) Before

func (c *Modules) Before(cc *cli.Context, callback func(ctx interface{}) (err error)) error

func (*Modules) GenerateConfig

func (c *Modules) GenerateConfig(cfg interface{}, output string)

func (*Modules) Init

func (c *Modules) Init(options interfaces.Options)

func (*Modules) Run

func (c *Modules) Run() (err error)

func (*Modules) RunWithBlock

func (c *Modules) RunWithBlock(gcpercent int, loop time.Duration) (err error)

func (*Modules) SetCommand

func (c *Modules) SetCommand(sub []*interfaces.Command)

func (*Modules) SetConfig

func (c *Modules) SetConfig(cfg interface{})

func (*Modules) SetDefaultAction

func (c *Modules) SetDefaultAction(callback func(ctx interface{}) (err error))

Jump to

Keyboard shortcuts

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