gt/internal/modes/modes.go
Lilian Jónsdóttir 2f56ecf40b add interactive mode
when run with no args, interactive mode is launched
files in trash are listed, select files, and use r/c to restore/clean them
2024-06-19 19:19:07 -07:00

29 lines
368 B
Go

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"
}
}