git-lfs/progress/noop.go

17 lines
821 B
Go
Raw Normal View History

2016-12-07 03:29:18 +00:00
package progress
func Noop() Meter {
return &nonMeter{}
}
type nonMeter struct{}
func (m *nonMeter) Start() {}
2017-01-24 21:11:38 +00:00
func (m *nonMeter) Pause() {}
func (m *nonMeter) Add(size int64) {}
2016-12-07 03:29:18 +00:00
func (m *nonMeter) Skip(size int64) {}
func (m *nonMeter) StartTransfer(name string) {}
func (m *nonMeter) TransferBytes(direction, name string, read, total int64, current int) {}
func (m *nonMeter) FinishTransfer(name string) {}
func (m *nonMeter) Finish() {}