Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6545500

Browse files
committed
Feat: Add subcommand "idea" to quickly capture ideas
1 parent c2a2d70 commit 6545500

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tasklite-core/app/Main.hs

+7-1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ data Command
4848
= AddTask [Text]
4949
| AddWrite [Text]
5050
| AddRead [Text]
51+
| AddIdea [Text]
5152
| AddWatch [Text]
5253
| AddListen [Text]
5354
| AddBuy [Text]
@@ -407,9 +408,13 @@ commandParser conf =
407408
"Write a message or a post")
408409

409410
<> command "read" (toParserInfo (AddRead <$> some (strArgument
410-
(metavar "BODY" <> help "Url or title oo a website or blog post")))
411+
(metavar "BODY" <> help "Url or title to a website or blog post")))
411412
"Read the specified URL")
412413

414+
<> command "idea" (toParserInfo (AddIdea <$> some (strArgument
415+
(metavar "BODY" <> help "Description of your idea")))
416+
"Quickly capture an idea")
417+
413418
<> command "watch" (toParserInfo (AddWatch <$> some (strArgument
414419
(metavar "BODY" <> help "Url or title of a video or movie to watch")))
415420
"Watch a movie or a video")
@@ -857,6 +862,7 @@ executeCLiCommand conf now connection cmd =
857862
AddTask bodyWords -> addTaskC bodyWords
858863
AddWrite bodyWords -> addTaskC $ ["Write"] <> bodyWords <> ["+write"]
859864
AddRead bodyWords -> addTaskC $ ["Read"] <> bodyWords <> ["+read"]
865+
AddIdea bodyWords -> addTaskC $ bodyWords <> ["+idea"]
860866
AddWatch bodyWords -> addTaskC $ ["Watch"] <> bodyWords <> ["+watch"]
861867
AddListen bodyWords -> addTaskC $ ["Listen"] <> bodyWords <> ["+listen"]
862868
AddBuy bodyWords -> addTaskC $ ["Buy"] <> bodyWords <> ["+buy"]

0 commit comments

Comments
 (0)