config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Overview

Package config contains configuration strings for maru

Index

Constants

View Source
const (
	// TasksYAML is the string for the default tasks.yaml
	TasksYAML = "tasks.yaml"

	// EnvPrefix is the prefix for environment variables
	EnvPrefix = "MARU"
)

Variables

View Source
var (
	// CLIArch is the computer architecture of the device executing the CLI commands
	CLIArch string

	// CLIVersion track the version of the CLI
	CLIVersion = "unset"

	// CmdPrefix is used to prefix Zarf cmds (like wait-for), useful when vendoring both the runner and Zarf
	// if not set, the system Zarf will be used
	CmdPrefix string

	// TaskFileLocation is the location of the tasks file to run
	TaskFileLocation string

	// TempDirectory is the directory to store temporary files
	TempDirectory string

	// VendorPrefix is the prefix for environment variables that an application vendoring Maru wants to use
	VendorPrefix string

	// MaxStack is the maximum stack size for task references
	MaxStack = 2048
)

Functions

func AddExtraEnv added in v0.2.0

func AddExtraEnv(key string, value string)

AddExtraEnv adds a new envirmentment variable to the extraEnv to make it available to actions

func ClearExtraEnv added in v0.2.0

func ClearExtraEnv()

ClearExtraEnv clears extraEnv back to empty map

func GetArch

func GetArch(archs ...string) string

GetArch returns the arch based on a priority list with options for overriding.

func GetExtraEnv added in v0.2.0

func GetExtraEnv() map[string]string

GetExtraEnv returns the map of extra environment variables that have been set and made available to actions

Types

This section is empty.

Directories

Path Synopsis
Package lang contains the language strings in english used by maru
Package lang contains the language strings in english used by maru

Jump to

Keyboard shortcuts

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