sailpoint-cli icon indicating copy to clipboard operation
sailpoint-cli copied to clipboard

[Feature] Output parameter

Open yannick-beot-sp opened this issue 2 years ago • 2 comments

Currently, the CLI mostly store the output of a command to files (SP-Config, transforms, reports, etc.) This prevents from piping the output between different set of commands (jq, grep, etc.) or readability (after all, JSON is not that readable).

Azure CLI does have a --output/-o parameter (cf. https://learn.microsoft.com/en-us/cli/azure/format-output-azure-cli) that allows different type of format for any output. It also has a --query allowing JSONPath filtering/transformation so we do not have to rely on jq or requivalent.

Finally, it is possible to define a default output.

SailPoint CLI would greatly benefit from such capability.

yannick-beot-sp avatar Apr 13 '23 14:04 yannick-beot-sp

@luke-hagar-sp We should look into this. We could probably just update all the list/get/download commands to print to stdout if no filepath is provided. I don't think that will be a breaking change. Thoughts?

colin-mckibben-sp avatar Apr 13 '23 16:04 colin-mckibben-sp

I'm thinking a global configuration option to specify output preference, standardized output formats supported via STDOUT, we would need to adjust some commands to allow for a more standardized output vs what is already implemented

LukeHagar avatar May 02 '23 14:05 LukeHagar