change default file path from stdin
This commit is contained in:
@@ -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)")
|
||||||
|
|||||||
Reference in New Issue
Block a user