mirror of
https://github.com/octoleo/restic.git
synced 2025-01-22 14:48:24 +00:00
ui: assert that ProgressPrinter interface is implemented
This commit is contained in:
parent
a144c986f2
commit
cccb0d4064
@ -19,6 +19,9 @@ type Backup struct {
|
||||
term *termstatus.Terminal
|
||||
}
|
||||
|
||||
// assert that Backup implements the ProgressPrinter interface
|
||||
var _ ProgressPrinter = &Backup{}
|
||||
|
||||
// NewBackup returns a new backup progress reporter.
|
||||
func NewBackup(term *termstatus.Terminal, verbosity uint) *Backup {
|
||||
return &Backup{
|
||||
|
@ -22,6 +22,9 @@ type Backup struct {
|
||||
v uint
|
||||
}
|
||||
|
||||
// assert that Backup implements the ProgressPrinter interface
|
||||
var _ ui.ProgressPrinter = &Backup{}
|
||||
|
||||
// NewBackup returns a new backup progress reporter.
|
||||
func NewBackup(term *termstatus.Terminal, verbosity uint) *Backup {
|
||||
return &Backup{
|
||||
|
Loading…
x
Reference in New Issue
Block a user