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 store_true action with environment variables #187

Merged
merged 1 commit into from
Apr 29, 2020

Conversation

joshtemple
Copy link
Collaborator

A bit of hack (subclasses a private argparse action), but allows the behavior we would like.

Can set SPECTACLES_IMPORT_PROJECTS to case-insensitive True or False, otherwise the --import-projects CLI flag works without an option being provided. Setting the option with a true or false in the YAML file still works as well.

@joshtemple joshtemple requested a review from DylanBaker April 29, 2020 03:19
@DylanBaker DylanBaker merged commit 4b00dae into feature/manifest-branches Apr 29, 2020
@DylanBaker DylanBaker deleted the feature/env-var-store-true branch April 29, 2020 17:18
DylanBaker added a commit that referenced this pull request Apr 29, 2020
* laying out decorator structure

* get_dependent_projects

* refactored to move logic into runner

* add manifest dependency argument to CLI

* fixed test_bad_request_raises_connection_error to include new methods

* more tests

* cleanup test_runner file

* update rebase:

* pass self to wrapper

* static method

* temp ignore decorator:

* move decorator outside runner class

* moving runner logic out of client + changes to decorator

* fixed tests

* renamed manifest dependency

* add update branch method

* updated tests

* added EnvVarAction to import projects

* Allow import-projects to be set via an environment variable (#187)

* add import-prjects to assert:

Co-authored-by: Josh Temple <[email protected]>
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.

2 participants