This PR adds a MARU=true variable to running tasks and includes some refactoring / rebranding.
The following :warning: breaking changes are included in this PR:
config.EnvPrefix has been changed from the variable run to the constant MARU now and is no longer modifiable by applications vendoring in the runner. This means any variable replacements that previously used <EnvPrefix>_<VariableName> will only work for MARU_<VariableName> now.
The function config.AddExtraEnv(key string, value string) has been added to allow applications vendoring maru to add arbitrary environment variables since the EnvPrefix can no longer be modified.
The configuration search path $HOME/.run has been replaced with $HOME/.maru
The configuration file name has been changed from run-config to maru-config
Templating is no longer being performed on 'cmd' values and is being left to the shell to expand environment variables.
Related Issue
Fixes #78
Type of change
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
Description
This PR adds a MARU=true variable to running tasks and includes some refactoring / rebranding.
The following :warning: breaking changes are included in this PR:
config.EnvPrefix
has been changed from the variablerun
to the constantMARU
now and is no longer modifiable by applications vendoring in the runner. This means any variable replacements that previously used<EnvPrefix>_<VariableName>
will only work forMARU_<VariableName>
now.config.AddExtraEnv(key string, value string)
has been added to allow applications vendoring maru to add arbitrary environment variables since the EnvPrefix can no longer be modified.$HOME/.run
has been replaced with$HOME/.maru
run-config
tomaru-config
Related Issue
Fixes #78
Type of change
Checklist before merging