-
Notifications
You must be signed in to change notification settings - Fork 14
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
Introduce formatter and output mechanism #3
Comments
Note: we do not want a logger like Logrus as we want to be able to query the data that |
As told on stream, |
For pretty outputs over interop outputs, I recommend Charm libs. https://charm.sh/ specifically Bubble Tea and Lip Gloss |
I've started looking at this, I should have time on the weekend to put my changes in a PR. |
Thought about this one a bit now and have a couple of thoughts I'd like to share/discuss:
I was looking into the implementation of kubectl, which seems to use
@keltia mentioned |
I'm curious about this too. Would it print a struct definition, a instance of a struct, or client-go grpc code to use the struct? I can say it would've been cool (and useful) if kubectl would print out valid client-go code based on the
I was thinking something like
I wouldn't think so, I'd expect it to depend on the subcommand. That's one of the reasons in my PR above the printers are configured by the subcommand.
I looked at that too, I agree with what you said about jsonpath as an alternative, or we could also just rely on |
We need a clean way to output and query the output of the program.
Ideally we will be able to do something like the following:
The text was updated successfully, but these errors were encountered: