dedupe/settings/variables.go
2023-08-11 13:34:54 +02:00

34 lines
717 B
Go

package settings
import (
"strconv"
"velvettear/dedupe/log"
)
// exported variable(s)
var Verbose bool
var Delete bool
var SourceDirectory string
var ComparisonDirectory string
// unexported function(s)
func setVerbose(verbose bool) {
Verbose = verbose
log.SetLogLevel(0)
log.Debug("set verbose flag", strconv.FormatBool(Verbose))
}
func setDelete(delete bool) {
Delete = delete
log.Debug("set delete flag", strconv.FormatBool(Delete))
}
func setSourceDirectory(directory string) {
SourceDirectory = directory
log.Debug("set source directory", SourceDirectory)
}
func setComparisonDirectory(directory string) {
ComparisonDirectory = directory
log.Debug("set source directory", ComparisonDirectory)
}