Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoArgs = errors.New("no arguments provided") ErrNoMatches = errors.New("no matches") ErrRange = errors.New("out of range") )
View Source
var Add = &cli.Command{
Name: "add",
Usage: "Create a new task",
ArgsUsage: "(<arg> | <prop>:<value>)...",
Description: `Create a new task.
If the property name <prop> is not defined in the schema,
the argument will be interpreted as an <arg> instead.
<arg> is used as the default property value."`,
Action: runAdd,
}
View Source
var Del = &cli.Command{
Name: "del",
Usage: "Delete tasks",
ArgsUsage: "(<id> | <range>)...",
Action: runDel,
}
View Source
var Get = &cli.Command{
Name: "get",
Usage: "Display tasks",
ArgsUsage: "(<id> | <range> | <filter>)...",
Action: runGet,
}
View Source
var GlobalFlags = []cli.Flag{
&cli.StringFlag{
Name: "config",
Usage: "load config from `PATH`",
},
}
View Source
var Set = &cli.Command{
Name: "set",
Usage: "Modify a task",
ArgsUsage: "<id> (<arg> | <prop>:<value>)...",
Description: `Modify a task.
If the property name <prop> is not defined in the schema,
the argument will be interpreted as an <arg> instead.
<arg> is used as the default property value."`,
Action: runSet,
}
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.