anchore / anchore-cli

Simple command-line client to the Anchore Engine service
Apache License 2.0
114 stars 55 forks source link

[Enhancement] Change default output of 'image list' to be image digest instead of Image ID #29

Closed zhill closed 5 years ago

zhill commented 5 years ago

Adding this issue to judge interest and gather feedback since this is a breaking CLI change for anyone parsing CLI output.

The original use-case of having the default output id be the image ID instead of digest was to match what one would see with a 'docker images' command, but the anchore API is driven by image digests.

Thus, it makes sense to change the default to show image digests, and the '--full' option to include the image ID.

Do folks parse the text output at all, or mostly use the --json flag for output parsing and thus this wouldn't break anything? Feedback welcomed.

zhill commented 5 years ago

Added in: 1950ec9d473a2ad8ab72a5499655fdb8b2c7b600