initializer

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrExitWithSuccess = errors.New("exit with success")
View Source
var Error = errors.New("initialization error")

Functions

This section is empty.

Types

type Initializer

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

func (*Initializer) Configure

func (init *Initializer) Configure() (err error)

func (*Initializer) Finalize

func (init *Initializer) Finalize() (err error)

func (*Initializer) HasFailed

func (init *Initializer) HasFailed() bool

func (*Initializer) MainAddCommand

func (init *Initializer) MainAddCommand(cmd *command.Command)

func (*Initializer) MainAddFlags

func (init *Initializer) MainAddFlags(ffns []varflag.FlagCreateFunc)

func (*Initializer) MainAddInfo

func (init *Initializer) MainAddInfo(paragraph string)

func (*Initializer) MainAfterAlways

func (init *Initializer) MainAfterAlways(a action.WithPrevErr)

func (*Initializer) MainAfterFailure

func (init *Initializer) MainAfterFailure(a action.WithPrevErr)

func (*Initializer) MainAfterSuccess

func (init *Initializer) MainAfterSuccess(a action.Action)

func (*Initializer) MainBefore

func (init *Initializer) MainBefore(a action.WithArgs)

func (*Initializer) MainBeforeAlways

func (init *Initializer) MainBeforeAlways(rt *application.Runtime, a action.WithArgs)

func (*Initializer) MainDo

func (init *Initializer) MainDo(a action.WithArgs)

func (*Initializer) MainTick

func (init *Initializer) MainTick(a action.Tick)

func (*Initializer) MainTock

func (init *Initializer) MainTock(a action.Tock)

func (*Initializer) SetLogger

func (init *Initializer) SetLogger(logger logging.Logger)

func (*Initializer) SetOptions

func (init *Initializer) SetOptions(a ...options.Arg)

func (*Initializer) WithAddon

func (init *Initializer) WithAddon(a *addon.Addon)

func (*Initializer) WithOptions

func (init *Initializer) WithOptions(opts []options.Spec)

func (*Initializer) WithSetup

func (init *Initializer) WithSetup(action action.Action)

Jump to

Keyboard shortcuts

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