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 structured support for external and top-level variables in qbec #10

Merged
merged 1 commit into from
Apr 7, 2019

Conversation

gotwarlost
Copy link
Contributor

@gotwarlost gotwarlost commented Apr 5, 2019

Refactor the options structs and interfaces such that config is now
created in the commands package. This allows for a single implmentation
for real code and tests such that the newly introduced interactions
between VM config and app can be handled in one place and tested.

Add a vars section in qbec.yaml that allows definition of external
and top-level variables. External variables can have defaults that
are used when not specified on the command line. Top level variables
must be associated with components such that these are only set
for the components that need them.

Add -V and -A shorthands (similar to jsonnet eval) to set
string vars for external and top-level variables from the command line.
Code values are also supported but do not have short flags for
assigment.

Introduce a --strict-vars flag that restricts commands from
only setting up variables that are defined in qbec and requires
them to set all such variables at the time of command invocation

Refactor the options structs and interfaces such that config is now
created in the commands package. This allows for a single implmentation
for real code and tests such that the newly introduced interactions
between VM config and app can be handled in one place and tested.

Add a `vars` section in qbec.yaml that allows definition of external
and top-level variables. External variables can have defaults that
are used when not specified on the command line. Top level variables
must be associated with components such that these are only set
for the components that need them.

Add `-V` and `-A` shorthands (similar to `jsonnet eval`) to set
string vars for external and top-level variables from the command line.
Code values are also supported but do not have short flags for
assigment.

Introduce a `--strict-vars` flag that restricts commands from
only setting up variables that are defined in qbec and requires
them to set _all_ such variables at the time of command invocation.
@gotwarlost gotwarlost changed the title WIP: variables add structured support for external and top-level variables in qbec Apr 7, 2019
@gotwarlost gotwarlost merged commit 2ae3674 into master Apr 7, 2019
@gotwarlost gotwarlost deleted the tlas branch April 7, 2019 21:01
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

Successfully merging this pull request may close these issues.

1 participant