lib

package
v1.0.1000 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: MIT Imports: 19 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLib

func NewLib() interfaces.Cli

NewLib -

func NewParsingContext added in v0.0.6

func NewParsingContext(ctx interface{}) interfaces.ParsingContext

Types

type DefaultConfig added in v1.0.1000

type DefaultConfig struct {
}

DefaultConfig -

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

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

func (*Modules) RegisterClean added in v1.0.1000

func (c *Modules) RegisterClean(inputs ...any)

func (*Modules) Run

func (c *Modules) Run(inputs ...any) (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))

func (*Modules) ShowVersion added in v1.0.1000

func (c *Modules) ShowVersion()

ShowVersion - default show version

func (*Modules) WaitAndShutdown added in v1.0.1000

func (c *Modules) WaitAndShutdown()

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