appinit

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: MIT Imports: 25 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 InitApp added in v0.7.1

func InitApp()

func MergeVars

func MergeVars(supFile *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 ProcessSupfile added in v0.7.1

func ProcessSupfile(conf *entity.Supfile) error

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 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