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

Manifest.mf - Add a section for specifying command env variables #143

Open
zeralight opened this issue Oct 7, 2024 · 0 comments
Open

Manifest.mf - Add a section for specifying command env variables #143

zeralight opened this issue Oct 7, 2024 · 0 comments

Comments

@zeralight
Copy link
Contributor

Currently the way to pass env variables:

cmds:
  - name: pretty-grep
    type: executable
    executable: bash
    args:
      - -c
      - export GREP_OPTIONS="--color=auto -r --exclude-dir=node_modules --exclude-dir=.git" grep

But we can have a cleaner syntax if we can specify environment variables in a dedicated attribute:

cmds:
  - name: pretty-grep
     type: executable
     executable: grep
     env:
       - GREP_OPTIONS: --color=auto -r --exclude-dir=node_modules --exclude-dir=.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant