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
Add filter flag documentation and examples to help message #1203
Conversation
Commit 03677e3 does not match "Signed-off-by". Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/contributing/#developer-s-certificate-of-origin |
eb50790
to
74ea417
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall a good improvement. I left some comments around grammar and terminology that should be updated as well. My only concern is this is making the already really long --help
even longer, but I think this is fine.
That's a fair point. The help message is very long now. If this grows even more, it might be a good idea to move the examples to the docs.cilium.io and just link to them in the help message? |
Yeah, I'm also a bit worried about help page length. On the other hand, I do think those examples brings a lot of value to users who are calling It's mostly users who already know the basics of Hubble for which this adds a lot of visual clutter, making it harder to quickly look up the reference for a flag they are looking for. Maybe an option would be to maybe have short and long help flag? That I think would cover both cases: Users who are learning Hubble and want a more verbose help page, vs. users who just want to quickly know about the syntax or name of a particular flag. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Hubble CLI provides multiple different flags to filter the returned flows. However how these filters are combined is not entirely obvious. This commit adds more detailed help message and multiple examples that explain how these filters interact if more than one filter flag is provided. Fixes: cilium#433 Signed-off-by: Fabian Fischer <fabian.fischer@isovalent.com>
Signed-off-by: Fabian Fischer <fabian.fischer@isovalent.com>
Thanks for all the input on the help text. I often struggle with technical writing so I'm always happy about feedback. And about the short and long help flag. I think I agree that this sounds smart, but when I actually tried to implement this I struggled to find a clean solution. I can see three ways of doing this and all three have pros and cons
Any opinions? |
Another alternative is a new sub-command like I'm personally okay with updating the existing |
The Hubble CLI provides multiple different flags to filter the returned
flows. However how these filters are combined is not entirely obvious.
This commit adds more detailed help message and multiple examples that
explain how these filters interact if more than one filter flag is
provided.
I struggled to make this concise and understandable, so I added more detailed examples. I'm happy about any input to improve this and make it clearer.