2024-07-30 14:43:54 -04:00
|
|
|
// Package modes implements Mode type for interactive table.
|
2024-06-19 21:24:57 -04:00
|
|
|
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"
|
|
|
|
}
|
|
|
|
}
|