accept -g to merge files
This commit is contained in:
@@ -12,6 +12,7 @@ import (
|
||||
|
||||
type config struct {
|
||||
target string
|
||||
target2 string
|
||||
root string
|
||||
tags []string
|
||||
search string
|
||||
@@ -19,6 +20,7 @@ type config struct {
|
||||
add string
|
||||
addSchedule string
|
||||
addTags string
|
||||
dryRun bool
|
||||
}
|
||||
|
||||
func getConfig() config {
|
||||
@@ -29,11 +31,13 @@ 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.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")
|
||||
flag.StringVar(&config.search, "search", "", "fts case insensitive")
|
||||
flag.BoolVar(&config.edit, "e", false, "edit file")
|
||||
flag.BoolVar(&config.dryRun, "dry-run", false, "dry run")
|
||||
flag.StringVar(&config.add, "add", "", "todo to add")
|
||||
flag.StringVar(&config.addSchedule, "add-schedule", "", "todo to add schedule")
|
||||
flag.StringVar(&config.addTags, "add-tags", "", "todo to add csv tags")
|
||||
|
||||
Reference in New Issue
Block a user