Is there an existing issue for this?
Is this happening on an up to date version of Incus?
Incus system details
Instance details
No response
Instance log
No response
Current behavior
While translating command descriptions, I noticed that their descriptions are very irregular, and some elements are either inconsistent or just wrong:
- Some descriptions (both short and long) end with a period and some don’t;
- Some long descriptions are the same as the short ones, but with one or two words rephrased (which feels useless), sometimes with a singular/plural mismatch;
- Some commands suggest that long column format specifiers are accepted while it’s not the case from the source code;
- Some commands indicate “[…] that control which XXX attributes to output […]” with “XXX” being the wrong word(s); this happens at other places in some command descriptions;
- Some filter descriptions suggest that matches are performed on substrings while they sometimes are performed on prefixes only;
- Some filter descriptions indicate that filters should be combined with commas, where they can actually be different command-line arguments (I think comma separation is legacy and shouldn’t even be documented anymore);
- The default column layout isn’t always shown at a consistent place;
- Some of these default column layout characters don’t match the actual allowed characters;
- Some
list commands feature a == Columns == separator (which by the way renders poorly on the web documentation) while some don’t.
Expected behavior
(Marking this as a bug because it’s not just a matter of style and taste)
The above comments should be fixed. It’s rather painful to do but will make command descriptions much clearer. If the person tackling this happens to speak French, I’m suggesting them to have a look at what’s being done in the French translation.
I think some of these elements (such as column layout info) should be automatically generated from data present in the code. It would also have the nice effect for translators not to die of boredom when they reach the incus <xxx> list part of the translation :)
Also, do we still need all these line breaks? Content and disposition should be handled at different places if we really want to have fixed-width lines.
Steps to reproduce
/
Is there an existing issue for this?
Is this happening on an up to date version of Incus?
Incus system details
IrrelevantInstance details
No response
Instance log
No response
Current behavior
While translating command descriptions, I noticed that their descriptions are very irregular, and some elements are either inconsistent or just wrong:
listcommands feature a== Columns ==separator (which by the way renders poorly on the web documentation) while some don’t.Expected behavior
(Marking this as a bug because it’s not just a matter of style and taste)
The above comments should be fixed. It’s rather painful to do but will make command descriptions much clearer. If the person tackling this happens to speak French, I’m suggesting them to have a look at what’s being done in the French translation.
I think some of these elements (such as column layout info) should be automatically generated from data present in the code. It would also have the nice effect for translators not to die of boredom when they reach the
incus <xxx> listpart of the translation :)Also, do we still need all these line breaks? Content and disposition should be handled at different places if we really want to have fixed-width lines.
Steps to reproduce
/