diff --git a/cmd/list.go b/cmd/list.go index 37d668b..465525f 100644 --- a/cmd/list.go +++ b/cmd/list.go @@ -2,9 +2,7 @@ package cmd import ( "fmt" - "strings" "time" - "unicode/utf8" "github.com/mickael-menu/zk/adapter/sqlite" "github.com/mickael-menu/zk/core/note" @@ -16,18 +14,18 @@ import ( // List displays notes matching a set of criteria. type List struct { - Path []string `arg optional placeholder:"GLOB"` - Format string `help:"Pretty prints the list using the given format" short:"f" placeholder:"TEMPLATE"` - Match string `help:"Terms to search for in the notes" short:"m" placeholder:"TERMS"` - Limit int `help:"Limit the number of results" short:"n" placeholder:"MAX"` - Created string `help:"Show only the notes created on the given date" placeholder:"DATE"` - CreatedBefore string `help:"Show only the notes created before the given date" placeholder:"DATE"` - CreatedAfter string `help:"Show only the notes created after the given date" placeholder:"DATE"` - Modified string `help:"Show only the notes modified on the given date" placeholder:"DATE"` - ModifiedBefore string `help:"Show only the notes modified before the given date" placeholder:"DATE"` - ModifiedAfter string `help:"Show only the notes modified after the given date" placeholder:"DATE"` - Exclude []string `help:"Excludes notes matching the given file path pattern from the list" short:"x" placeholder:"GLOB"` - Sort []string `help:"Sort the notes by the given criterion" short:"s" placeholder:"CRITERION"` + Path []string `arg optional placeholder:""` + Format string `help:"Pretty prints the list using the given format" short:"f" placeholder:"