apply

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyMigConfig

func ApplyMigConfig(c *Context) error

func ApplyMigMode

func ApplyMigMode(c *Context) error

func BuildCommand

func BuildCommand() *cli.Command

func GetLogger

func GetLogger() *logrus.Logger

func ParseHooksFile

func ParseHooksFile(f *Flags) (*hooks.Spec, error)

Types

type ApplyHooks

type ApplyHooks interface {
	ApplyStart(envs hooks.EnvsMap, output bool) error
	PreApplyMode(envs hooks.EnvsMap, output bool) error
	PreApplyConfig(envs hooks.EnvsMap, output bool) error
	ApplyExit(envs hooks.EnvsMap, output bool) error
}

type Context

type Context struct {
	assert.Context
	Flags *Flags
	Hooks ApplyHooks
}

func (*Context) HooksEnvsMap

func (c *Context) HooksEnvsMap() hooks.EnvsMap

type Flags

type Flags struct {
	assert.Flags
	HooksFile string
}

Jump to

Keyboard shortcuts

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