usecase

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2025 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendCommandEnvsToTask

func AppendCommandEnvsToTask(cmd *entity.Command, task *entity.Task)

func CheckInitialArgs

func CheckInitialArgs(network *entity.Network, initialArgs *entity.InitialArgs)

func CreateTasks

func CreateTasks(cmd *entity.Command, clients []entity.ClientFacade, env entity.EnvList, args *entity.InitialArgs) ([]*entity.Task, error)

func EnsureLocalhost

func EnsureLocalhost(supFile *entity.Supfile)

func ResolveLocalPath

func ResolveLocalPath(cwd, path, env string) (string, error)

ResolveLocalPath - Use bash to resolve $ENV_VARs. like: `~/dir` or `$HOME/dir`

func ResolvePath

func ResolvePath(path string) string

ResolvePath resolves a path relative to the current working directory

Types

type Stackup

type Stackup struct {
	Args *entity.InitialArgs
	// contains filtered or unexported fields
}

func NewStackup

func NewStackup(conf *entity.Supfile) *Stackup

NewStackup creates a new Stackup instance.

func (*Stackup) Debug

func (sup *Stackup) Debug(value bool)

Debug sets whether or not to print debug messages

func (*Stackup) Prefix

func (sup *Stackup) Prefix(value bool)

Prefix sets the host prefix for printing output from it

func (*Stackup) Run

func (sup *Stackup) Run(isMakefileMode bool, network *entity.Network, envVars entity.EnvList, commands ...*entity.Command) error

Run runs set of commands on multiple hosts defined by network sequentially.

TODO: This megamoth method needs a big refactor and should be split
to multiple smaller methods.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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