-
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
Cylc config with multiple items - output upgrades idea #6411
Comments
I think this behaviour is sensible and can be useful in some cases. E.G. I sometimes scan workflows looking for particular config items. If you don't want this behaviour, the
This'll do it:
I've been interested in the idea of plugin validators which would be an interesting option for this going forward. Essentially a plugin Python function that could operate on the config and raise an exception if it wants to fail validation. We would probably need to do a bit of groundwork before we can present an API for this that we would be willing to maintain though. |
Default doesn't seem to do anything for custom fields. For other things, like
p.s. is it |
Does Cylc guarantee the order is preserved for the |
Looking at it, without knowing which line belongs to which
|
Running
cylc config -i something -i something_else ...
, the results will beMy question is, should
cylc config
abort on the first missing item, or should it print something for each item?At the moment, given the way things are printed, with no differentiation, I guess aborting immediately is the only sane option. However, could there be a more
grep
like implementation? Below I've suggested an option--add-prefix
If this approach is used, then we could then have
Why do this? Well, it allows you to query a bunch of stuff in one request, and obtain information which may not exist without aborting. This can then be examined afterwards to check if information is missing.
The problem I was trying to solve is - I want to make sure all tasks in my workflow have a
[meta]URL
defined and the workflow itself has a[meta]URL
defined. The only way I can think of to do that check is to parse the results fromcylc config
. Noting that ideally the workflow doesn't need to be installed to perform this check as it should be doable vi CI.The text was updated successfully, but these errors were encountered: