Progress returns a string containing the operation in progress.
()
| 22 | |
| 23 | // Progress returns a string containing the operation in progress. |
| 24 | func (d Direction) Progress() string { |
| 25 | switch d { |
| 26 | case Checkout: |
| 27 | return tr.Tr.Get("Checking out LFS objects") |
| 28 | case Download: |
| 29 | return tr.Tr.Get("Downloading LFS objects") |
| 30 | case Upload: |
| 31 | return tr.Tr.Get("Uploading LFS objects") |
| 32 | default: |
| 33 | return "<unknown>" |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | func (d Direction) String() string { |
| 38 | switch d { |