tui

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cfg clientconfig.ClientConfig) *Client

func (*Client) Complete

func (c *Client) Complete(id string) error

func (*Client) Create

func (c *Client) Create(title, due, priority, description string) error

Create posts a new task. due must already be an API-acceptable string (RFC3339 preferred); description may be empty.

func (*Client) Delete

func (c *Client) Delete(id string) error

Delete removes a task.

func (*Client) ListTasks

func (c *Client) ListTasks() ([]taskItem, error)

ListTasks returns pending tasks (kept for backward compatibility / tests).

func (*Client) ListTasksFilter

func (c *Client) ListTasksFilter(filter, period string) ([]taskItem, error)

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

func (c *Client) ListTasksPage(filter, period, cursor string) ([]taskItem, string, error)

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).

func (*Client) Me

func (c *Client) Me() (string, error)

func (*Client) Profile added in v0.3.0

func (c *Client) Profile() (profile, error)

Profile fetches the caller's account, returning the fields the TUI needs (email for the header, timezone for rendering times).

func (*Client) Snooze

func (c *Client) Snooze(id, until string) error

Snooze reschedules a task until the given time string.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL