accept -archive to push -f Done into -archive Done

This commit is contained in:
bel
2024-12-31 10:09:55 -07:00
parent 284b57b9c4
commit 1413d02764
2 changed files with 58 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ type config struct {
addSchedule string
addTags string
dryRun bool
archive string
}
func getConfig() config {
@@ -32,6 +33,7 @@ func getConfig() config {
var config config
flag.StringVar(&config.target, "f", defaultFilepath, "($PTTODO_FILE) path to yaml file or dir (starting with root then alphabetical for dir)")
flag.StringVar(&config.target2, "g", "", "path to yaml file to merge into root of -f")
flag.StringVar(&config.archive, "archive", "", "path to yaml file to migrate done")
flag.StringVar(&config.root, "root", DUMP_TODO, "path to pretty print ("+fmt.Sprint([]string{DUMP_ALL, DUMP_TODO, DUMP_SCHEDULED, DUMP_DONE})+")")
var tagss string
flag.StringVar(&tagss, "tags", "", "csv of all tags to find, -x to invert")