-
Notifications
You must be signed in to change notification settings - Fork 252
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
Hubble observe flows #875
Hubble observe flows #875
Conversation
d405618
to
c4f8ecb
Compare
c4f8ecb
to
cc9b44b
Compare
edc3738
to
e4f6118
Compare
Hubble observe is now an alias for `hubble observe flows`. The only major difference is the help text for `hubble observe` is now briefer and indicates it is an alias for `hubble observe flows`. Additionally, while refactoring, I removed the flow formatting flags from the general formatting flagset and just moved it to it's own flagset. Signed-off-by: Chance Zibolski <chance.zibolski@gmail.com>
e4f6118
to
ef04656
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 looks fine to me. In local testing, I noticed however that hubble observe foo
still is an alias for hubble observe flows
. Is that intended?
Hmmm I missed that. Let me take a look |
I think that's expected, because we don't specify the allowed arguments for each command. In the current Hubble CLI you can also do This is because any command with a I think we can probably fix this by using |
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.
Makes sense. Yeah I think we should do that in a follow-up PR. Thanks!
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.
Thanks! @chancez
Lets try this merge thing again 🤞 |
Attempt number two for #851 and #543.
Hubble observe is now an alias for hubble observe flows. The only major difference is the help text for hubble observe is now briefer and indicates it is an alias for hubble observe flows. Additionally, while refactoring, I removed the flow formatting flags from the general formatting flagset and just moved it to it's own flagset.
This is currently based on #874 which adds unit tests to ensure things do not break this time.