todos-0.3: Easy-to-use TODOs manager.

Todos.CmdLine

Description

Module for parsing command line options and build queries

Synopsis

Documentation

parseCmdLine'Source

Arguments

:: DateTime

Current date/time

-> [String]

Command line args

-> Either String (Options, [FilePath])

Error message or (Options, list of files)

Parse command line

glob :: [FilePath] -> IO [FilePath]Source

For given list of glob masks, return list of matching files

buildQuerySource

Arguments

:: BaseConfig

Default config

-> Options

Cmdline options

-> DefaultConfig 

Build DefaultConfig (with query etc) from Options

composeSource

Arguments

:: DateTime

Current date/time

-> Composed

Composed query

-> TodoItem -> 𝔹 

Compose predicate from Composed

usage :: StringSource

Usage help for default command line options