-
Notifications
You must be signed in to change notification settings - Fork 192
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
Refactor verdi config
#4584
Comments
Note deprecation could be a bit of a pain. |
Thanks, I personally like the idea. In terms of deprecation: luckily, we don't have any config option called The list of options is, according to tab completion on my virtualenv:
In the worst case, if it's not possible to do it dynamically, we could have a small module that just defines these 20 subcommands explicitly, that we then simply delete in AiiDA v2.0? |
fixed 👍
Well I guess we could add this deprecation logic (for that list of keys) in some way to the code already in place to suggest closest matches for non-existent commands. Just a bit of a pain in the backside lol |
Ok well unless there are any objections, I'll assign myself to make a PR sometime soon(ish) |
Also on a related note, I'll just link this thought about the validation of options here: #4583 (comment) |
Let me note once more that I don't think the configuration of the caching can be included in this command. All the settings of |
Off the top of my head
|
Sure, you could make it work, but don't think that is the best solution. For one, I don't think |
This proposal does not anyhow inhibit there being a later |
A note on the configuration file validation: basically I think it should work very much like VS Code's |
I have "tentatively" added this to the v1.6.0, because it involves a deprecation. But obviously there are more pressing issues to close first, so we shall see if there is time to squeeze it in |
I'm grouping here #4260 and #4480 (also linked to #4240):
verdi config
currently has limited functionality, since it is a terminal/leaf command, rather than a command group, and also because it relies on tab completion for listing available options.It should be turned it to a command group with at minimal
list
,show
,set
,unset
commands.Proposals:
thoughts?
The text was updated successfully, but these errors were encountered: