feat: add cobra CLI with input/output flags and debug option

- Add --input/-i and --output/-o flags for file selection
- Add --debug flag to print intermediate JSON to stderr
- Print errors during parsing
This commit is contained in:
2025-11-25 17:26:12 +01:00
parent 389c1c3d25
commit 6022248a2f
3 changed files with 82 additions and 17 deletions

7
go.mod
View File

@@ -1,3 +1,10 @@
module git.donadeo.net/pdonadeo/todotxt2remind
go 1.24.1
require github.com/spf13/cobra v1.10.1
require (
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/spf13/pflag v1.0.9 // indirect
)