mirror of
https://github.com/rclone/rclone.git
synced 2024-11-30 04:23:48 +08:00
3092f82dcc
This almost 100% backwards compatible. The only difference being that in the rc options/get output CutoffMode, LogLevel, TerminalColorMode will be output as strings instead of integers. This is a lot more convenient for the user. They still accept integer inputs though so the fallout from this should be minimal.
23 lines
456 B
Go
23 lines
456 B
Go
package fs
|
|
|
|
type cutoffModeChoices struct{}
|
|
|
|
func (cutoffModeChoices) Choices() []string {
|
|
return []string{
|
|
CutoffModeHard: "HARD",
|
|
CutoffModeSoft: "SOFT",
|
|
CutoffModeCautious: "CAUTIOUS",
|
|
}
|
|
}
|
|
|
|
// CutoffMode describes the possible delete modes in the config
|
|
type CutoffMode = Enum[cutoffModeChoices]
|
|
|
|
// CutoffMode constants
|
|
const (
|
|
CutoffModeHard CutoffMode = iota
|
|
CutoffModeSoft
|
|
CutoffModeCautious
|
|
CutoffModeDefault = CutoffModeHard
|
|
)
|