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

feat: provide support for .env files injects via CLI #974

Closed
antongolub opened this issue Dec 14, 2024 · 2 comments · Fixed by #1022
Closed

feat: provide support for .env files injects via CLI #974

antongolub opened this issue Dec 14, 2024 · 2 comments · Fixed by #1022
Labels
ossln24 OSS Library Night 2024

Comments

@antongolub
Copy link
Collaborator

antongolub commented Dec 14, 2024

Imagine:

zx --env=/path/to/some.env my-script.mjs

relates #461

@mdevils
Copy link

mdevils commented Dec 14, 2024

Should it rather support doenv (https://www.npmjs.com/package/dotenv)?

@easymikey
Copy link
Contributor

Do I understand correctly that you need to write small parser for env files?

antongolub added a commit to antongolub/zx that referenced this issue Dec 24, 2024
antongolub added a commit to antongolub/zx that referenced this issue Dec 24, 2024
antongolub added a commit that referenced this issue Dec 30, 2024
* feat: handle multilines in env files

continues #974

* fix: check donenv names

* fix: handle dotenv comments

* fix: handle tabs in dotenvs

* fix: handle backtick in dotenv

* chore: parseDotenv tweak ups

* chore: shrink a few bytes

* chore: dotenv parse imprs

* chore: move custom dotenv parser to external pkg

* chore: linting

* chore: rebase

* feat: reexport `envapi`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ossln24 OSS Library Night 2024
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants