From f2984f6d7e6f125e780172ce516792099d2a4f11 Mon Sep 17 00:00:00 2001 From: Billy Zha Date: Thu, 28 Mar 2024 08:26:34 +0000 Subject: [PATCH] reorder args Signed-off-by: Billy Zha --- cmd/oras/internal/display/status/text.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/oras/internal/display/status/text.go b/cmd/oras/internal/display/status/text.go index 3babfe34a..8c0c14959 100644 --- a/cmd/oras/internal/display/status/text.go +++ b/cmd/oras/internal/display/status/text.go @@ -32,7 +32,7 @@ type TextPushHandler struct { } // NewTextPushHandler returns a new handler for push command. -func NewTextPushHandler(verbose bool, out io.Writer) PushHandler { +func NewTextPushHandler(out io.Writer, verbose bool) PushHandler { return &TextPushHandler{ verbose: verbose, printer: NewPrinter(out), @@ -83,6 +83,6 @@ func (ph *TextPushHandler) UpdateCopyOptions(opts *oras.CopyGraphOptions, fetche } // NewTextAttachHandler returns a new handler for attach command. -func NewTextAttachHandler(verbose bool, out io.Writer) AttachHandler { - return NewTextPushHandler(verbose, out) +func NewTextAttachHandler(out io.Writer, verbose bool) AttachHandler { + return NewTextPushHandler(out, verbose) }