-
Notifications
You must be signed in to change notification settings - Fork 243
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
odo catalog list components should truncate long descriptions #4044
Comments
technically its not a bug, so making it a feature request |
|
Ok I got something:
Altho I must say, without a name, that looks weird. Might be a good idea to add names to your stuff |
@girishramnani personally, I think name must be a required field |
How does someone use them without a name? I think we should skip showing entries without names(show why we are skipping in verbose logs) |
FWIW, the missing names were due to having used previous experimental versions of odo and having an old registry configured (and yes, you couldn't do anything with them :) ). Once I fixed that it goes to the current registry and names are ok. +1 to the ... It does show that stack creators need to be a little more concise in the descriptions, but IMHO that's a good thing and this change will help accelerate it. |
Ok il have a WIP pr up shortly. Adding tests for this, however, will be harder as we need a devfile in a registry that has an extra-long description by design (that does not get accidentally fixed breaking tests left and right :)) |
Oki tho I still think we should error if we have entries without a name. It could be graceful like I said, by skipping those and logging it on -v 4 or something
Done. PR up. If they cant make it concise, then at least they should now try to fit the most important info in 60 chars :) |
/kind bug
What versions of software are you using?
Operating System:
MacBook Pro running Catalina
Output of
odo version
:odo v2.0.0 (6fbb9d9)
How did you run odo exactly?
odo catalog list components
Actual behavior
Due to one really long description I had to make my console 207 characters wide to be able to read the output:
Expected behavior
If the description is longer than some reasonable amount (60 chars?) it should be truncated with an ellipsis (...) so that the command is still usable. Especially once users start to create devfiles there could be one that's 200 chars or more.
The text was updated successfully, but these errors were encountered: