appinit

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: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSUPENVFrom

func GenerateSUPENVFrom(vars *entity.EnvList)

GenerateSUPENVFrom generates the SUP_ENV environment variable from the environment variables in the vars list

func MergeVars

func MergeVars(conf *entity.Supfile, network *entity.Network) entity.EnvList

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

func NewSupfile(data []byte) (*entity.Supfile, error)

NewSupfile parses configuration file and returns Supfile or error.

func ParseInitialArgs

func ParseInitialArgs(initData entity.InitState) (*entity.PlayBook, error)

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 ResolveValues(e *entity.EnvList) error

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

func TargetsHaveAffixes(conf *entity.Supfile) bool

TargetsHaveAffixes if targets have affixes mapped

Types

This section is empty.

Jump to

Keyboard shortcuts

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