BF: Provide indication which procedure is (to be) execut(ed/able) #3960
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
[Sits on top of https://github.com//pull/3959 to avoid conflicts]
Before, only "absent" (but configured) procedures were marked up in the 'state' field of their result record. Now this is extended with two more states:
These additional states are also reflected in the renderer, where only active/executable procedures are renderer as before, and any other's are de-emphasized and annotated.
Fixes gh-3614
Example output before
% dl run-procedure --discover
cfg_inm7 (/etc/xdg/datalad/procedures/cfg_inm7.py) [python_script]
cfg_inm7 (/home/mih/hacking/datalad/inm7-datalad/inm7_datalad/resources/procedures/cfg_inm7.py) [python_script]
ria_post_install (/home/mih/hacking/datalad/git-annex-ria-remote/ria_remote/resources/procedures/ria_post_install.py) [python_script]
after
% datalad run-procedure --discover
cfg_inm7 (/etc/xdg/datalad/procedures/cfg_inm7.py) [python_script]
cfg_inm7 (/home/mih/hacking/datalad/inm7-datalad/inm7_datalad/resources/procedures/cfg_inm7.py) [python_script (overridden)]
ria_post_install (/home/mih/hacking/datalad/git-annex-ria-remote/ria_remote/resources/procedures/ria_post_install.py) [python_script]
or in full: