@@ -157,6 +157,7 @@ import Lib (
157157adjustPriority,
158158countTasks,
159159deletableTasks,
160+deleteNote,
160161deleteTag,
161162deleteTasks,
162163doTasks,
@@ -261,6 +262,7 @@ data Command
261262 | AddTag TagText [IdText]
262263 | DeleteTag TagText [IdText]
263264 | AddNote Text [IdText]
265+ | DeleteNote IdText
264266 | SetDueUtc DateTime [IdText]
265267 | Start [IdText]
266268 | Stop [IdText]
@@ -382,7 +384,7 @@ aliasWarning alias =
382384<+> "Use"
383385<+> dquotes (pretty alias)
384386<+> "instead."
385- <> hardline
387+<> hardline
386388387389388390getCommand :: (Text, Text) -> Mod CommandFields Command
@@ -574,6 +576,10 @@ commandParser conf =
574576<*> some (strArgument idsVar))
575577"Add a note to specified tasks")
576578579+<> command "deletenote" (toParserInfo (DeleteNote
580+<$> strArgument (metavar "ULID" <> help "The ULID of the note"))
581+"Delete the specified note")
582+577583<> command "due" (toParserInfo (SetDueUtc
578584<$> argument (maybeReader (parseUtc . T.pack))
579585 (metavar "DUE_UTC" <> help "Due timestamp in UTC")
@@ -957,11 +963,11 @@ commandParserInfo conf =
957963 header =
958964 annotate (bold <> color Blue) "TaskLite"
959965<+> prettyVersion
960- <> hardline
961- <> hardline
962- <> annotate
963- (color Blue)
964- "Task-list manager powered by Haskell and SQLite"
966+<> hardline
967+<> hardline
968+<> annotate
969+ (color Blue)
970+"Task-list manager powered by Haskell and SQLite"
965971966972 examples = do
967973let
@@ -1207,6 +1213,7 @@ executeCLiCommand conf now connection progName args = do
12071213AddTag tagText ids -> addTag conf connection tagText ids
12081214DeleteTag tagText ids -> deleteTag conf connection tagText ids
12091215AddNote noteText ids -> addNote conf connection noteText ids
1216+DeleteNote id -> deleteNote conf connection id
12101217SetDueUtc datetime ids -> setDueUtc conf connection datetime ids
12111218Duplicate ids -> duplicateTasks conf connection ids
12121219CountFiltered taskFilter -> countTasks conf connection taskFilter