mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-01-26 05:37:18 +02:00
24 lines
559 B
Go
24 lines
559 B
Go
package presentation
|
|
|
|
import (
|
|
"github.com/jesseduffield/lazygit/pkg/gui/types"
|
|
"github.com/jesseduffield/lazygit/pkg/i18n"
|
|
)
|
|
|
|
func ItemOperationToString(itemOperation types.ItemOperation, tr *i18n.TranslationSet) string {
|
|
switch itemOperation {
|
|
case types.ItemOperationNone:
|
|
return ""
|
|
case types.ItemOperationPushing:
|
|
return tr.PushingStatus
|
|
case types.ItemOperationPulling:
|
|
return tr.PullingStatus
|
|
case types.ItemOperationFastForwarding:
|
|
return tr.FastForwarding
|
|
case types.ItemOperationDeleting:
|
|
return tr.DeletingStatus
|
|
}
|
|
|
|
return ""
|
|
}
|