tasklite-core-0.5.0.0: CLI task / todo list manager with SQLite backend
Safe HaskellNone
LanguageGHC2021

Cli

Synopsis

Documentation

type String = [Char] Source #

data Command Source #

Constructors

AddTask [Text] 
AddWrite [Text] 
AddRead [Text] 
AddIdea [Text] 
AddWatch [Text] 
AddListen [Text] 
AddBuy [Text] 
AddSell [Text] 
AddPay [Text] 
AddShip [Text] 
LogTask [Text] 
EnterTask 
ReadyOn DateTime [IdText] 
WaitTasks [IdText] 
WaitFor Duration [IdText] 
ReviewTasks [IdText] 
ReviewTasksIn Duration [IdText] 
DoTasks [IdText] 
DoOneTask IdText (Maybe [Text]) 
EndTasks [IdText] 
EndOneTask IdText (Maybe [Text]) 
TrashTasks [IdText] 
DeleteTasks [IdText] 
RepeatTasks Duration [IdText] 
RecurTasks Duration [IdText] 
BoostTasks [IdText] 
HushTasks [IdText] 
Prioritize Float [IdText]

Modify [IdText] Text -- DSL for modifying a task

AddTag TagText [IdText] 
DeleteTag TagText [IdText] 
AddNote Text [IdText] 
DeleteNote IdText 
SetDueUtc DateTime [IdText] 
Start [IdText] 
Stop [IdText] 
Duplicate [IdText] 
EditTask IdText 
InfoTask IdText 
NextTask 
RandomTask (Maybe [Text]) 
FindTask Text 
ImportFile FilePath 
ImportDir FilePath 
ImportJson 
ImportYaml 
ImportMarkdown 
ImportEml 
IngestFile FilePath 
IngestDir FilePath 
Csv 
Json 
Ndjson 
Sql 
Backup 
ListAll 
ListHead 
ListNewFiltered (Maybe [Text]) 
ListOld 
ListOpen (Maybe [Text]) 
ListModified 
ListModifiedOnly 
ListDone 
ListObsolete 
ListDeletable 
ListReady 
ListWaiting 
ListOverdue 
ListRepeating 
ListRecurring 
ListNoTag 
ListWithTag [Text] 
CountFiltered (Maybe [Text]) 
QueryTasks Text 
RunSql Text 
RunFilter [Text] 
Tags 
Projects 
Notes 
Stats 
UnCloseTasks [IdText] 
UnDueTasks [IdText] 
UnWaitTasks [IdText] 
UnWakeTasks [IdText] 
UnReadyTasks [IdText] 
UnReviewTasks [IdText] 
UnRepeatTasks [IdText] 
UnRecurTasks [IdText] 
UnTagTasks [IdText] 
UnNoteTasks [IdText] 
UnPrioTasks [IdText] 
UnMetaTasks [IdText] 
Version 
Alias Text (Maybe [Text]) 
Help 
PrintConfig 
StartServer 
UlidToUtc Text 
ExternalCommand Text (Maybe [Text]) 

Instances

Instances details
Show Command Source # 
Instance details

Defined in Cli

Eq Command Source # 
Instance details

Defined in Cli

Methods

(==) :: Command -> Command -> Bool #

(/=) :: Command -> Command -> Bool #

data CliOptions Source #

Constructors

CliOptions 

Instances

Instances details
Show CliOptions Source # 
Instance details

Defined in Cli

Eq CliOptions Source # 
Instance details

Defined in Cli

basic_sec :: (Text, Text) Source #

Help Sections

shortcut_sec :: (Text, Text) Source #

Help Sections

list_sec :: (Text, Text) Source #

Help Sections

vis_sec :: (Text, Text) Source #

Help Sections

i_o_sec :: (Text, Text) Source #

Help Sections

advanced_sec :: (Text, Text) Source #

Help Sections

alias_sec :: (Text, Text) Source #

Help Sections

unset_sec :: (Text, Text) Source #

Help Sections

utils_sec :: (Text, Text) Source #

Help Sections

replaceDoc :: Doc ann -> Doc ann -> [Doc ann] -> [Doc ann] Source #

spliceDocsIntoText :: [(Text, Doc AnsiStyle)] -> Text -> [Doc AnsiStyle] Source #

Because optparse-applicative does not support styling group headers, this function is necessary to splice new Docs into the old Docs TODO: Remove after https://github.com/pcapriotti/optparse-applicative/issues/485