lib

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: MIT Imports: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLib

func NewLib() interfaces.Cli

func NewParsingContext added in v0.0.6

func NewParsingContext(ctx interface{}) interfaces.ParsingContext

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) Block added in v0.0.6

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

func (*Modules) GenerateConfig

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

func (*Modules) Init

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

func (*Modules) ParsingContext added in v0.0.6

func (c *Modules) ParsingContext(ctx interface{}) interfaces.ParsingContext

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))

type ParsingContext added in v0.0.6

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

func (*ParsingContext) ArgumentsFirst added in v0.0.6

func (c *ParsingContext) ArgumentsFirst() (val string, err error)

Directories

Path Synopsis
secrets

Jump to

Keyboard shortcuts

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