pywbemtools icon indicating copy to clipboard operation
pywbemtools copied to clipboard

Machine-readable form of output for piping

Open andy-maier opened this issue 4 years ago • 5 comments

Consider a machine-readable form of output that would allow command redirection at least at the shell level.

Note that click itself does not really support the idea of redirection in the interactive mode (output of one command available as input to the next command) but we could use the click context as a way to pass results to input in the interactive mode (Which would make the command mode different than the interactive mode).

Some examples of usage might be: Run a command to get the namespaces and then run another command on all of those namespaces. The easiest idea for this is the processing of things like connection names, instancenames, classnames, and namespace names. or lists of the same.

andy-maier avatar Apr 30 '21 05:04 andy-maier

we have to look at our possible inputs and find a way to structure outputs to be able to generate these outputs.

KSchopmeyer avatar May 07 '21 16:05 KSchopmeyer

Example today. Delete a group of instances. We need to generate a list of paths one object per line and just use the shell tools to process (delete) the result.

Question: What are some of the more complex things that we might want to do with piped pywbemcli commands?

KSchopmeyer avatar May 07 '21 16:05 KSchopmeyer

Lets document the cases that work and then work on cases that could be important but do not work today

KSchopmeyer avatar May 07 '21 16:05 KSchopmeyer

DISCUSSION: move to next release.

andy-maier avatar Jul 10 '21 14:07 andy-maier

We discussed this in our call today and decided to move this issue into the next release.

andy-maier avatar Jul 11 '21 13:07 andy-maier