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

Allow cmd to read external data from env and command line flags #159

Closed
cueckoo opened this issue Jul 3, 2021 · 1 comment
Closed

Allow cmd to read external data from env and command line flags #159

cueckoo opened this issue Jul 3, 2021 · 1 comment
Labels
FeatureRequest New feature or request roadmap/cli Specific tag for roadmap issue #337
Milestone

Comments

@cueckoo
Copy link
Collaborator

cueckoo commented Jul 3, 2021

Originally opened by @ukiahsmith in cuelang/cue#159

To what extent should environment variables and flags be unified?

How should the cmd command evaluate environmental variables and flags when both are specified.

@cueckoo cueckoo added FeatureRequest New feature or request roadmap/cli Specific tag for roadmap issue #337 labels Jul 3, 2021
@cueckoo cueckoo added this to the v0.1.0 milestone Jul 3, 2021
@cueckoo cueckoo closed this as completed Jul 3, 2021
@cueckoo
Copy link
Collaborator Author

cueckoo commented Jul 3, 2021

Original reply by @mpvl in cuelang/cue#159 (comment)

The tooling layer now supports environment variables.

A general mechanism for injecting values based on command lines flags is now supported through --inject/-t. This is not general command line flags, which may still be considered, but it is actually surprisingly hard to get a nice UX for. So closing this for now until --inject/-t proves insufficient.

ptMcGit pushed a commit to ptMcGit/cue that referenced this issue Jan 22, 2023
Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FeatureRequest New feature or request roadmap/cli Specific tag for roadmap issue #337
Projects
None yet
Development

No branches or pull requests

1 participant