Refactor modify and replace to their own files

This commit is contained in:
2025-03-27 22:18:12 +01:00
parent f6def1e5a5
commit f008efd5e1
4 changed files with 200 additions and 172 deletions

13
utils/flags.go Normal file
View File

@@ -0,0 +1,13 @@
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")
)