Skip to content

Commit

Permalink
reorder args
Browse files Browse the repository at this point in the history
Signed-off-by: Billy Zha <[email protected]>
  • Loading branch information
qweeah committed Mar 28, 2024
1 parent 927470b commit f2984f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/oras/internal/display/status/text.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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)
}

0 comments on commit f2984f6

Please sign in to comment.