Commander icon indicating copy to clipboard operation
Commander copied to clipboard

Support for --format argument on search command

Open davideavanzi opened this issue 1 year ago • 2 comments

Currently, the keeper search command does not support different output formats other than tabular data.

As an example, it is possible to run the keeper list --format=json command to obtain the whole vault in a JSON format, but it's not possible to have the same output for the keeper search one.

In fact, running keeper search --format=json search_term returns the following error: unrecognized arguments: --format search_term

davideavanzi avatar Jul 03 '24 13:07 davideavanzi

Commander supports --format argument for commands with table-like output. search command output is not a table though it can be redirected to json format. There are list, list-sf, and list-team commands that support --format argument.

sk-keeper avatar Jul 03 '24 17:07 sk-keeper

I understand, I was supposing that the search output was mostly the same as the one of the list command, so I thought that a JSON-formatted output might be useful.

davideavanzi avatar Jul 04 '24 08:07 davideavanzi