-
Notifications
You must be signed in to change notification settings - Fork 94
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
Added -z option #5605
Added -z option #5605
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
(Corrected linked Issue in description from 5543 to #5433) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 a few trivial changes suggested
876964d
to
6362c4a
Compare
9242324
to
c2343c3
Compare
9a4b706
to
b2d5b3a
Compare
replace all instances of load_template_vars with get_template_vars allow -z simple template variable string lists
b2d5b3a
to
eaae0bb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 thanks @wxtim
Closes #5433
Allow -z simple template variable string lists.
As part of this work I have replaced all instances of
load_template_vars
(which takes 3 keyword args) withget_template_vars
(which takes a CLI options object and pulls the args forload_template_vars
out). I have left the separation of the two functions because it reduces testing.Additionally I have added error handling for this case:
cylc vip -s "FOO"
- which previously failed with traceback. It now raises a CylcError subclass which is handled nicely.Check List
CONTRIBUTING.md
and added my name as a Code Contributor.setup.cfg
(andconda-environment.yml
if present).CHANGES.md
entry included if this is a change that can affect users?.?.x
branch.