Implement undoing

This commit is contained in:
2025-03-10 18:52:55 +01:00
parent 8c5d783d2c
commit ae1986cb81
2 changed files with 35 additions and 3 deletions

View File

@@ -22,12 +22,15 @@ const PathColor = Green
var FileRegex, _ = regexp.Compile(`sync\.ya?ml$`)
var programName = os.Args[0]
var undo = false
func main() {
recurse := flag.String("r", "", "recurse into directories")
file := flag.String("f", "", "file to read instructions from")
debug := flag.Bool("d", false, "debug")
undoF := flag.Bool("u", false, "undo")
flag.Parse()
undo = *undoF
if *debug {
log.SetFlags(log.Lmicroseconds | log.Lshortfile)