Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve environment setting #55

Open
scizzorz opened this issue Feb 6, 2020 · 1 comment
Open

Improve environment setting #55

scizzorz opened this issue Feb 6, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@scizzorz
Copy link
Member

scizzorz commented Feb 6, 2020

$ mold -a foo -a bar init

is quite tedious when you're using environments.

I'd suggest two additions:

$ mold init:foo:bar

which will append foo and bar to the environments list just for the init recipe, and:

$ mold +foo +bar init

which is just shorthand for -a foo and -a bar

@scizzorz scizzorz added the enhancement New feature or request label Feb 6, 2020
@scizzorz scizzorz added this to the 0.6.0 milestone Feb 9, 2020
@scizzorz scizzorz removed this from the 0.6.0 milestone Mar 7, 2020
@scizzorz
Copy link
Member Author

Maybe a better option is to allow recipes to be parametrized, eg specifying a recipe as something like:

recipe deploy/$ENV/$COMPONENT {
    $ "echo $ENV $COMPONENT"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant