gt/internal/interactive/modes/modes.go
Lilian Jónsdóttir 9b87c02744 make linters happy
fix typos, less short and more idomatic variable names, package comments, etc.
2024-07-30 11:43:54 -07:00

30 lines
429 B
Go

// Package modes implements Mode type for interactive table.
package modes
type Mode int
const (
Trashing Mode = iota + 1
Listing
Restoring
Cleaning
Interactive
)
func (m Mode) String() string {
switch m {
case Trashing:
return "Trashing"
case Listing:
return "Listing"
case Restoring:
return "Restoring"
case Cleaning:
return "Cleaning"
case Interactive:
return "Interactive"
default:
return "0"
}
}