Lilian Jónsdóttir
2f56ecf40b
when run with no args, interactive mode is launched files in trash are listed, select files, and use r/c to restore/clean them
29 lines
368 B
Go
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"
|
|
}
|
|
}
|