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) ListTasksPage(filter, period, cursor string) ([]taskItem, string, error)
- func (c *Client) Me() (string, error)
- func (c *Client) Profile() (profile, 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 the first page of tasks for the given status (pending|completed|all) and time period (all|today|week|month), which combine as independent filters.
func (*Client) ListTasksPage ¶ added in v0.2.0
ListTasksPage fetches one page (up to 50) of tasks starting after cursor ("" for the first page) and returns the page plus the next-page cursor ("" when there are no more rows).
Click to show internal directories.
Click to hide internal directories.