plan

package
v0.1.61 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HelpStep = Step{
	Help: "print help message for createfile",
}
View Source
var UpdateStep = Step{
	Command: `
		export GOPRIVATE=github.com
		go install github.com/sheik/create/cmd/create@latest
		touch go.sum
		rm -f go.sum
		go clean -modcache
		go mod tidy
		go get -u github.com/sheik/create/pkg/build
		go get -u github.com/sheik/create/pkg/docker
		go get -u github.com/sheik/create/pkg/git
		go get -u github.com/sheik/create/pkg/plan
		go get -u github.com/sheik/create/pkg/shell
		go get -u github.com/sheik/create/pkg/util
		go mod vendor
		`,
	Help: "update create",
}

Functions

func Complete

func Complete(args ...string) []string

func Run

func Run(steps Steps)

Types

type Step

type Step struct {
	Command      string
	Function     interface{}
	Precondition string
	Check        bool
	Gate         error
	Fail         string
	Help         string
	Depends      []string
	Default      bool
	Interactive  bool
	// contains filtered or unexported fields
}

type Steps

type Steps map[string]Step

func (Steps) DefaultTarget

func (steps Steps) DefaultTarget() (string, error)

func (Steps) Execute

func (steps Steps) Execute(name string) (err error)

func (Steps) PrintHelp

func (steps Steps) PrintHelp(args ...interface{}) error

func (Steps) ProcessTarget

func (steps Steps) ProcessTarget(name string)

Jump to

Keyboard shortcuts

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