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

Add support for environment variables #23

Open
ohad opened this issue Feb 22, 2022 · 2 comments
Open

Add support for environment variables #23

ohad opened this issue Feb 22, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@ohad
Copy link
Owner

ohad commented Feb 22, 2022

Commands can expect environment variables to be set, and these are available to the handler.
The environment variables can be typed, and will be parsed before being handed to the handler.

(proposed by @eayus )

@ohad ohad added the enhancement New feature or request label Feb 22, 2022
@mattpolzin
Copy link
Contributor

Unlike arguments, these may more often apply to many or all commands. Not sure if/how that needs to factor in, but seems worth thinking about in the course of designing this.

@ohad
Copy link
Owner Author

ohad commented Feb 22, 2022

Yes, I wonder whether these should be indexed in reverse (a node in the tree has an env. variable associated with it, and it's shared with its subcommands).

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

2 participants