Documentation ¶
Index ¶
- Variables
- type Initializer
- func (init *Initializer) Configure() (err error)
- func (init *Initializer) Finalize() (err error)
- func (init *Initializer) HasFailed() bool
- func (init *Initializer) MainAddCommand(cmd *command.Command)
- func (init *Initializer) MainAddFlags(ffns []varflag.FlagCreateFunc)
- func (init *Initializer) MainAddInfo(paragraph string)
- func (init *Initializer) MainAfterAlways(a action.WithPrevErr)
- func (init *Initializer) MainAfterFailure(a action.WithPrevErr)
- func (init *Initializer) MainAfterSuccess(a action.Action)
- func (init *Initializer) MainBefore(a action.WithArgs)
- func (init *Initializer) MainBeforeAlways(rt *application.Runtime, a action.WithArgs)
- func (init *Initializer) MainDo(a action.WithArgs)
- func (init *Initializer) MainTick(a action.Tick)
- func (init *Initializer) MainTock(a action.Tock)
- func (init *Initializer) SetLogger(logger logging.Logger)
- func (init *Initializer) SetOptions(a ...options.Arg)
- func (init *Initializer) WithAddon(a *addon.Addon)
- func (init *Initializer) WithOptions(opts []options.Spec)
- func (init *Initializer) WithSetup(action action.Action)
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 New ¶
func New(s settings.Settings, rt *application.Runtime, log *logging.QueueLogger) *Initializer
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)
Click to show internal directories.
Click to hide internal directories.