Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidAmountOfArgs = errors.New("invalid amount of args") ErrInvalidArg = errors.New("invalid argument") ErrCouldNotFindTask = errors.New("could not find task") ErrUnknownFolder = errors.New("unknown folder") ErrFieldAlreadyUsed = errors.New("field was already used") ErrInvalidDate = errors.New("could not understand date format") ErrInvalidProject = errors.New("could not understand project") ErrInvalidRecur = errors.New("could not understand recurrer") )
Functions ¶
func ParseTaskFieldArgs ¶
func ParseTaskFieldArgs(args []string) (*task.LocalUpdate, error)
Types ¶
type Command ¶
type Command interface {
Do() string
}
func Parse ¶
func Parse(args []string, conf *configuration.Configuration) (Command, error)
type Done ¶
type Done struct {
// contains filtered or unexported fields
}
Done updates a task to be marked done
func NewDone ¶
func NewDone(localId int, conf *configuration.Configuration) (*Done, error)
type Fetch ¶
type Fetch struct {
// contains filtered or unexported fields
}
func NewFetch ¶
func NewFetch(conf *configuration.Configuration) (*Fetch, error)
type Folder ¶
type Folder struct {
// contains filtered or unexported fields
}
func NewFolder ¶
func NewFolder(conf *configuration.Configuration, cmdArgs []string) (*Folder, error)
type Inbox ¶
type Inbox struct {
// contains filtered or unexported fields
}
func NewInbox ¶
func NewInbox(conf *configuration.Configuration) (*Inbox, error)
type New ¶
type New struct {
// contains filtered or unexported fields
}
New sends an action to the NEW folder so it can be updated to a real task later
func NewNew ¶
func NewNew(conf *configuration.Configuration, cmdArgs []string) (*New, error)
type Project ¶
type Project struct {
// contains filtered or unexported fields
}
func NewProject ¶
func NewProject(conf *configuration.Configuration, cmdArgs []string) (*Project, error)
type Projects ¶
type Projects struct {
// contains filtered or unexported fields
}
func NewProjects ¶
func NewProjects(conf *configuration.Configuration) (*Projects, error)
type Recur ¶
type Recur struct {
// contains filtered or unexported fields
}
func NewRecur ¶
func NewRecur(conf *configuration.Configuration, cmdArgs []string) (*Recur, error)
type Send ¶
type Send struct {
// contains filtered or unexported fields
}
func NewSend ¶
func NewSend(conf *configuration.Configuration) (*Send, error)
type Show ¶
type Show struct {
// contains filtered or unexported fields
}
func NewShow ¶
func NewShow(id int, conf *configuration.Configuration) (*Show, error)
type Sync ¶
type Sync struct {
// contains filtered or unexported fields
}
func NewSync ¶
func NewSync(conf *configuration.Configuration) (*Sync, error)
type Today ¶
type Today struct {
// contains filtered or unexported fields
}
Today lists all task that are due today or past their due date
func NewToday ¶
func NewToday(conf *configuration.Configuration) (*Today, error)
type Tomorrow ¶
type Tomorrow struct {
// contains filtered or unexported fields
}
Tomorrow lists all tasks that are due tomorrow
func NewTomorrow ¶
func NewTomorrow(conf *configuration.Configuration) (*Tomorrow, error)
type Update ¶
type Update struct {
// contains filtered or unexported fields
}
func NewUpdate ¶
func NewUpdate(localId int, conf *configuration.Configuration, cmdArgs []string) (*Update, error)
Click to show internal directories.
Click to hide internal directories.