File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ data Command
48
48
= AddTask [Text ]
49
49
| AddWrite [Text ]
50
50
| AddRead [Text ]
51
+ | AddIdea [Text ]
51
52
| AddWatch [Text ]
52
53
| AddListen [Text ]
53
54
| AddBuy [Text ]
@@ -407,9 +408,13 @@ commandParser conf =
407
408
" Write a message or a post" )
408
409
409
410
<> 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" )))
411
412
" Read the specified URL" )
412
413
414
+ <> command " idea" (toParserInfo (AddIdea <$> some (strArgument
415
+ (metavar " BODY" <> help " Description of your idea" )))
416
+ " Quickly capture an idea" )
417
+
413
418
<> command " watch" (toParserInfo (AddWatch <$> some (strArgument
414
419
(metavar " BODY" <> help " Url or title of a video or movie to watch" )))
415
420
" Watch a movie or a video" )
@@ -857,6 +862,7 @@ executeCLiCommand conf now connection cmd =
857
862
AddTask bodyWords -> addTaskC bodyWords
858
863
AddWrite bodyWords -> addTaskC $ [" Write" ] <> bodyWords <> [" +write" ]
859
864
AddRead bodyWords -> addTaskC $ [" Read" ] <> bodyWords <> [" +read" ]
865
+ AddIdea bodyWords -> addTaskC $ bodyWords <> [" +idea" ]
860
866
AddWatch bodyWords -> addTaskC $ [" Watch" ] <> bodyWords <> [" +watch" ]
861
867
AddListen bodyWords -> addTaskC $ [" Listen" ] <> bodyWords <> [" +listen" ]
862
868
AddBuy bodyWords -> addTaskC $ [" Buy" ] <> bodyWords <> [" +buy" ]
You can’t perform that action at this time.
0 commit comments