Files
BigChef/utils/flags.go

14 lines
470 B
Go

package utils
import (
"flag"
)
var (
GitFlag = flag.Bool("git", false, "Use git to manage files")
ResetFlag = flag.Bool("reset", false, "Reset files to their original state")
LogLevel = flag.String("loglevel", "INFO", "Set log level: ERROR, WARNING, INFO, DEBUG, TRACE")
Cookfile = flag.String("cook", "**/cook.yml", "Path to cook config files, can be globbed")
ParallelFiles = flag.Int("P", 100, "Number of files to process in parallel")
)