Closed geekpete closed 1 year ago
I then to agree with this proposal, most of the time when we use the list
subcommand we want to get the version of the plugins.
But adding the version by default might break some automating tools that rely on that command.
We had a chat on slack @jordansissel and I about this, he suggested that when we call logstash-plugin list beats
we return by default the version in that usecase.
Not all users are aware that the list accepts a pattern to search.
Sounds like a nice compromise. We could also add a logstash-plugin list-versions or similar as a new command that appears in the default help page.
Is this issue still relevant? It seems --verbose
might be sufficient even without listing specific version if listing a single plugin.
Another idea (especially for automation) might be providing some kind of --output-format
parameter to then allow different output styles like csv, json, json_flat,etc and maybe have verbose option in there too.
./bin/logstash-plugin list --output-format="json_flat,verbose"
Change behaviour of logstash-plugin command to show plugin version numbers by default. Provide an additional switch to list plugins in "bare" mode as was the previous default, might be useful for anyone scripting with this list.
Many users might not immediately know that to reveal version numbers requires the -verbose option.
So this by default:
rather than this: