Open demiranda-gabriel opened 3 years ago
Hello again @demiranda-gabriel, and congrats on raising your first issue! ๐ ๐
That's a good point! It seems the exit codes help
are returned fully over multiple lines, but that of the inputs and outputs is not. This really is too bad in case of e.g. the parallelization
options for the PwCalculation
:
$ verdi plugin list aiida.calculations quantumespresso.pw
Description:
`CalcJob` implementation for the pw.x code of Quantum ESPRESSO.
Inputs:
code: required Code The `Code` to use for this job.
kpoints: required KpointsData kpoint mesh or kpoint path
parameters: required Dict The input parameters that are to be used to construct the input file.
pseudos: required UpfData, UpfData A mapping of `UpfData` nodes onto the kind name to which they should apply.
structure: required StructureData The input structure.
hubbard_file: optional SinglefileData SinglefileData node containing the output Hubbard parameters from a HpCalcu ...
metadata: optional
parallelization: optional Dict Parallelization options. The following flags are allowed:
npool : The numb ...
There should at least be an option to show the full help
, the whole point of adding this is to make the calculation jobs and work chains self-documenting.
Let me know if you want to have a crack at fixing this! I'd be happy to meet in gather.town to show you what part of the code needs to be adjusted, and discuss the best way to do it. (if I can figure it out ๐ )
As a side note, since GitHub uses Markdown, you can use triple backticks ```
to have nice code blocks, for example:
I am a code block!
You can also add syntax highlighting by adding the language to the first triple backticks. For example, this:
```python
def iam():
print('I am a code-block!')
Will show:
```python
def iam():
print('I am a code-block!')
You might be wondering how I show the code blocks with the actual back ticks. ^^ This is done by adding an extra backtick fence (I think this is the correct term), but then with four backticks:
I am a code block!
To show the code snippet above then, I had to make a backtick fence with five backticks. ๐
EDIT: Here you can find a little tutorial on using Markdown on GitHub:
https://guides.github.com/features/mastering-markdown/
It's really cool! ๐ฏ
Hi there Marnik! Thank you for you tips and help on Markdown :smile:. I really hope to start learning and using more of these GitHub collab features, it's really cool!
As it may not be a too urgent feature to have, I'd indeed appreciate giving it a try :smiley:. I can send you an email so we could try to arrange some time to talk about it, then. Thanks!
Just a quick note that another current shortcoming of this help functionality (I don't think there is already an issue for this) is that the nested namespaces are not shown. So you only see the top level namespace, but not what is nested within it which is ultimately what is important, especially for inputs. The challenge here is that it might not be trivial to always format this information in such a way that it is still readable on the CLI. This is certainly the reason why I didn't add this from the beginning. In other output formats, like html, you can use dynamic features like using collapsible components that expand when needed.
Just a minor issue that was suggested to be opened at the AiiDA Tutorial:
Describe the current issue
Getting information about a specific calculation/workflow plugin with
verdi plugin list
(e.g.verdi plugin list aiida.calculations arithmetic.add
) returns incomplete information from thehelp
parameter for eachspec
defined in the plugin (if its string is too long). For instance, in this case, it returns:Describe the solution you'd like
It could be helpful if the complete string stored in the
help
parameter of eachspec
could be displayed with thisverdi
command.