Documentation
¶
Index ¶
- func GenerateSUPENVFrom(vars *entity.EnvList)
- func MergeVars(conf *entity.Supfile, network *entity.Network) entity.EnvList
- func NewSupfile(data []byte) (*entity.Supfile, error)
- func ParseInitialArgs(initData entity.InitState) (*entity.PlayBook, error)
- func ReadSupfile(initialArgs *entity.InitialArgs) *entity.Supfile
- func ResolveValues(e *entity.EnvList) error
- func SetEnvValues(vars *entity.EnvList, initialArgs *entity.InitialArgs)
- func TargetsHaveAffixes(conf *entity.Supfile) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateSUPENVFrom ¶
GenerateSUPENVFrom generates the SUP_ENV environment variable from the environment variables in the vars list
func MergeVars ¶
MergeVars merges two entity.EnvList lists, one from supfile and one from network, resolves the values of the environment variables with shell substitution, and returns the merged list of environment variables
func NewSupfile ¶
NewSupfile parses configuration file and returns Supfile or error.
func ParseInitialArgs ¶
ParseInitialArgs parses args and returns network and commands to be run. On error, it prints usage and exits.
func ReadSupfile ¶
func ReadSupfile(initialArgs *entity.InitialArgs) *entity.Supfile
ReadSupfile looks for Supfile or Supfiley.yml in the current working directory, cd's to Supfile dir, reads it and calls NewSupfile, after all returns the parsed Supfile.
func ResolveValues ¶
func SetEnvValues ¶
func SetEnvValues(vars *entity.EnvList, initialArgs *entity.InitialArgs)
SetEnvValues sets vars from env pairs inside the initialArgs.EnvVars, values there will be given as 'key=value'
func TargetsHaveAffixes ¶
TargetsHaveAffixes if targets have affixes mapped
Types ¶
This section is empty.