diff --git a/cmd/edit.go b/cmd/edit.go index 3d7c20a..5ae7063 100644 --- a/cmd/edit.go +++ b/cmd/edit.go @@ -15,7 +15,7 @@ import ( type Edit struct { Filtering Sorting - Force bool `help:"Don't confirm before editing many notes at the same time" short:"f"` + Force bool `help:"Don't confirm before editing many notes at the same time." short:"f"` } func (cmd *Edit) Run(container *Container) error { diff --git a/cmd/finder_opts.go b/cmd/finder_opts.go index f2d01ab..b1a6b39 100644 --- a/cmd/finder_opts.go +++ b/cmd/finder_opts.go @@ -13,29 +13,29 @@ import ( type Filtering struct { Path []string `arg optional placeholder:""` - Match string `short:"m" placeholder:"" help:"Terms to search for in the notes"` - Limit int `short:"n" placeholder:"" help:"Limit the number of results"` - Created string ` placeholder:"" help:"Only the notes created on the given date"` - CreatedBefore string ` placeholder:"" help:"Only the notes created before the given date"` - CreatedAfter string ` placeholder:"" help:"Only the notes created after the given date"` - Modified string ` placeholder:"" help:"Only the notes modified on the given date"` - ModifiedBefore string ` placeholder:"" help:"Only the notes modified before the given date"` - ModifiedAfter string ` placeholder:"" help:"Only the notes modified after the given date"` - Related []string ` help:"Only the notes which might be related to the given notes" xor:"link"` - LinkedBy []string `short:"l" placeholder:"" help:"Only the notes linked by the given notes" xor:"link"` - LinkingTo []string `short:"L" placeholder:"" help:"Only the notes linking to the given notes" xor:"link"` - NotLinkedBy []string ` placeholder:"" help:"Only the notes not linked by the given notes" xor:"link"` - NotLinkingTo []string ` placeholder:"" help:"Only the notes not linking to the given notes" xor:"link"` - MaxDistance int ` help:"Maximum distance between two linked notes"` - Orphan bool ` help:"Only the notes which don't have any other note linking to them"` - Exclude []string `short:"x" placeholder:"" help:"Excludes notes matching the given file path pattern from the list"` - Recursive bool `short:"r" help:"Follow links recursively"` - Interactive bool `short:"i" help:"Further filter the list of notes interactively"` + Match string `short:"m" placeholder:"" help:"Terms to search for in the notes."` + Limit int `short:"n" placeholder:"" help:"Limit the number of results."` + Created string ` placeholder:"" help:"Only the notes created on the given date."` + CreatedBefore string ` placeholder:"" help:"Only the notes created before the given date."` + CreatedAfter string ` placeholder:"" help:"Only the notes created after the given date."` + Modified string ` placeholder:"" help:"Only the notes modified on the given date."` + ModifiedBefore string ` placeholder:"" help:"Only the notes modified before the given date."` + ModifiedAfter string ` placeholder:"" help:"Only the notes modified after the given date."` + Related []string ` help:"Only the notes which might be related to the given notes." xor:"link"` + LinkedBy []string `short:"l" placeholder:"" help:"Only the notes linked by the given notes." xor:"link"` + LinkingTo []string `short:"L" placeholder:"" help:"Only the notes linking to the given notes." xor:"link"` + NotLinkedBy []string ` placeholder:"" help:"Only the notes not linked by the given notes." xor:"link"` + NotLinkingTo []string ` placeholder:"" help:"Only the notes not linking to the given notes." xor:"link"` + MaxDistance int ` help:"Maximum distance between two linked notes."` + Orphan bool ` help:"Only the notes which don't have any other note linking to them."` + Exclude []string `short:"x" placeholder:"" help:"Excludes notes matching the given file path pattern from the list."` + Recursive bool `short:"r" help:"Follow links recursively."` + Interactive bool `short:"i" help:"Further filter the list of notes interactively."` } // Sorting holds sorting options to order notes. type Sorting struct { - Sort []string `short:"s" placeholder:"" help:"Sort the notes by the given criterion"` + Sort []string `short:"s" placeholder:"" help:"Sort the notes by the given criterion."` } // NewFinderOpts creates an instance of note.FinderOpts from a set of user flags. diff --git a/cmd/index.go b/cmd/index.go index 7bd92c0..dd37c6d 100644 --- a/cmd/index.go +++ b/cmd/index.go @@ -13,8 +13,8 @@ import ( // Index indexes the content of all the notes in the slip box. type Index struct { - Force bool `help:"Force indexing all the notes" short:"f"` - Quiet bool `help:"Do not print statistics nor progress" short:"q"` + Force bool `short:"f" help:"Force indexing all the notes."` + Quiet bool `short:"q" help:"Do not print statistics nor progress."` } func (cmd *Index) Run(container *Container) error { diff --git a/cmd/init.go b/cmd/init.go index 90baa50..861d448 100644 --- a/cmd/init.go +++ b/cmd/init.go @@ -9,7 +9,7 @@ import ( // Init creates a slip box in the given directory type Init struct { - Directory string `arg optional type:"path" default:"." help:"Directory containing the slip box"` + Directory string `arg optional type:"path" default:"." help:"Directory containing the slip box."` } func (cmd *Init) Run() error { diff --git a/cmd/list.go b/cmd/list.go index b954a21..8fba241 100644 --- a/cmd/list.go +++ b/cmd/list.go @@ -15,11 +15,11 @@ import ( // List displays notes matching a set of criteria. type List struct { - Format string `help:"Pretty prints the list using the given format" short:"f" placeholder:"