change default file path from stdin
parent
42d532ee61
commit
50913b8913
|
|
@ -34,7 +34,7 @@ func main() {
|
||||||
func _main() error {
|
func _main() error {
|
||||||
defaultFilepath, ok := os.LookupEnv("PTTODO_FILE")
|
defaultFilepath, ok := os.LookupEnv("PTTODO_FILE")
|
||||||
if !ok {
|
if !ok {
|
||||||
defaultFilepath = "-"
|
defaultFilepath = "./todo.yaml"
|
||||||
}
|
}
|
||||||
filepath := flag.String("f", defaultFilepath, "($PTTODO_FILE) path to yaml file or dir (starting with root then alphabetical for dir)")
|
filepath := flag.String("f", defaultFilepath, "($PTTODO_FILE) path to yaml file or dir (starting with root then alphabetical for dir)")
|
||||||
filepathToMergeIn := flag.String("g", "", "path to yaml file to merge into -f (modifies f)")
|
filepathToMergeIn := flag.String("g", "", "path to yaml file to merge into -f (modifies f)")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue