-
Notifications
You must be signed in to change notification settings - Fork 139
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
CLI JSON output #37
Comments
I see that
Am I missing anything? |
This issue is with reference to the output as a whole, most importantly log statements. I was hoping we could create a consistent flag which supports, at least "json", and is essentially saying "output human readable or machine readable". In the case of For Essentially, someone just getting started would want to see a friendly progress indicator which does not clutter up their terminal with log-spew that will overwhelm them. This is the default on An intermediate user might want to script the An advanced user might both want to script the
In general, I wouldn't want to print out any Kubernetes-specific objects, but rather the minimum data necessary to encapsulate the meat of the object, or message confirming the success/failure of the task. This way we have a high liklihood of being able to make the output similar (if not identical) on various providers. Sorry @lance; my initial issue was pretty light on substance! |
@lkingland |
It's my opinion that we should be seeking the simplest possible functional case at this time, and only add more as specific use-cases require them. The minimum necessary information to subscribe to an event is its unique identifier, thus the minimum necessary information back out of the system would be those same unique identifiers returned. If we want to add more information; perhaps augmented with fields that are platform-specific, I would see that as a GET request for more information about the subscription of that ID.
By keeping ourselves so simple as to be nearly an oversimplification, I am hoping we can prevent from painting ourselves into a corner unnecessarily. |
@lkingland by |
OK, I see that's for the listing of deployed Functions. I'd say the same general suggestion applies. Just return a list of the names, and then one can get more information about a given service with |
This is complete. Implemented by @matejvasek in #67 and slightly tweaked to have format functions consolidated with the |
Some of the commands support specifying JSON output; it would be nice to have all commands support this flag.
The text was updated successfully, but these errors were encountered: