(json bool, verbosity uint, term Terminal)
| 67 | } |
| 68 | |
| 69 | func NewProgressPrinter(json bool, verbosity uint, term Terminal) progress.Printer { |
| 70 | if json { |
| 71 | verbosity = 0 |
| 72 | } |
| 73 | return &progressPrinter{ |
| 74 | term: term, |
| 75 | Message: *NewMessage(term, verbosity), |
| 76 | show: verbosity > 0, |
| 77 | } |
| 78 | } |