Documentation
¶
Index ¶
- func Run(cfg clientconfig.ClientConfig) error
- type Client
- func (c *Client) Complete(id string) error
- func (c *Client) Create(title, due, priority, description string) error
- func (c *Client) Delete(id string) error
- func (c *Client) ListTasks() ([]taskItem, error)
- func (c *Client) ListTasksFilter(filter, period string) ([]taskItem, error)
- func (c *Client) Me() (string, error)
- func (c *Client) Snooze(id, until string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(cfg clientconfig.ClientConfig) error
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(cfg clientconfig.ClientConfig) *Client
func (*Client) Create ¶
Create posts a new task. due must already be an API-acceptable string (RFC3339 preferred); description may be empty.
func (*Client) ListTasks ¶
ListTasks returns pending tasks (kept for backward compatibility / tests).
func (*Client) ListTasksFilter ¶
ListTasksFilter fetches tasks for the given status (pending|completed|all) and time period (all|today|week|month), which combine as independent filters.
Click to show internal directories.
Click to hide internal directories.