main: rename output to format

We had a chat about this and we feel that `format` is less ambiguous a
name for this argument.

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
This commit is contained in:
Simon de Vlieger 2025-02-26 20:15:33 +01:00 committed by Michael Vogt
parent 58aa0cf87b
commit 4d9cf723fd
3 changed files with 8 additions and 8 deletions

View file

@ -34,7 +34,7 @@ func TestListImagesNoArguments(t *testing.T) {
restore := main.MockNewRepoRegistry(testrepos.New)
defer restore()
for _, args := range [][]string{nil, []string{"--output=text"}} {
for _, args := range [][]string{nil, []string{"--format=text"}} {
restore = main.MockOsArgs(append([]string{"list-images"}, args...))
defer restore()
@ -55,7 +55,7 @@ func TestListImagesNoArgsOutputJSON(t *testing.T) {
restore := main.MockNewRepoRegistry(testrepos.New)
defer restore()
restore = main.MockOsArgs([]string{"list-images", "--output=json"})
restore = main.MockOsArgs([]string{"list-images", "--format=json"})
defer restore()
var fakeStdout bytes.Buffer