lib

package
v1.0.1002 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLib

func NewLib() interfaces.Cli

NewLib -

func NewParsingContext

func NewParsingContext(ctx interface{}) interfaces.ParsingContext

Types

type DefaultConfig

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) GetVersion added in v1.0.1002

func (c *Modules) GetVersion() *interfaces.Version

func (*Modules) Init

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

func (*Modules) ParsingContext

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

func (*Modules) RegisterClean

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

func (c *Modules) ShowVersion()

ShowVersion - default show version

func (*Modules) WaitAndShutdown

func (c *Modules) WaitAndShutdown()

type ParsingContext

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

func (*ParsingContext) ArgumentsFirst

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