Documentation ¶
Index ¶
- type Application
- func (a *Application) Complete()
- func (a *Application) Delete()
- func (a *Application) EditContent()
- func (a *Application) EditDuedate()
- func (a *Application) GetSelection() (int, *Task)
- func (a *Application) MoveProject()
- func (a *Application) QuickAdd()
- func (a *Application) QuickFilter()
- func (a *Application) Refresh() error
- func (a *Application) Reopen()
- func (a *Application) Run() error
- func (a *Application) SetFilter(str string) error
- func (a *Application) SetPriority(p int)
- func (a *Application) ShowDetail()
- func (a *Application) ShowHelp()
- func (a *Application) Stop()
- func (a *Application) Update() error
- type Client
- func (c *Client) AddTask(args *map[string]interface{}) (*Task, error)
- func (c *Client) CloseTask(id uint) error
- func (c *Client) DeleteTask(id uint) error
- func (c *Client) GetTask(id uint) (*Task, error)
- func (c *Client) ListComments(args *map[string]interface{}) ([]*Comment, error)
- func (c *Client) ListLabels() ([]*Label, error)
- func (c *Client) ListProjects() ([]*Project, error)
- func (c *Client) ListTasks(filter *map[string]interface{}) ([]*Task, error)
- func (c *Client) MoveTask(id uint, args *map[string]interface{}) error
- func (c *Client) QuickAddTask(text string, args *map[string]interface{}) error
- func (c *Client) ReopenTask(id uint) error
- func (c *Client) UpdateTask(id uint, args *map[string]interface{}) error
- type Comment
- type Config
- type Label
- type Project
- type RequestOption
- type Task
- type UI
- func (u *UI) ErrorMessage(err error)
- func (u *UI) FilterStatus(filter string)
- func (u *UI) GetSelection() int
- func (u *UI) Init()
- func (u *UI) Popup(title, content string)
- func (u *UI) PopupConfirm(message string, buttonLabels []string, callbackFunc func(string))
- func (u *UI) PopupInput(title, text string, callbackFunc func(string))
- func (u *UI) RemoveRow(r int)
- func (u *UI) RenderRow(r int, cells ...*tview.TableCell)
- func (u *UI) Run() error
- func (u *UI) SetInputCapture(f func(*tcell.EventKey) *tcell.EventKey)
- func (u *UI) StatusLine(message string, duration time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
func NewApplication ¶
func NewApplication() (*Application, error)
func (*Application) Complete ¶
func (a *Application) Complete()
func (*Application) Delete ¶
func (a *Application) Delete()
func (*Application) EditContent ¶
func (a *Application) EditContent()
func (*Application) EditDuedate ¶
func (a *Application) EditDuedate()
func (*Application) GetSelection ¶
func (a *Application) GetSelection() (int, *Task)
func (*Application) MoveProject ¶
func (a *Application) MoveProject()
func (*Application) QuickAdd ¶
func (a *Application) QuickAdd()
func (*Application) QuickFilter ¶
func (a *Application) QuickFilter()
func (*Application) Refresh ¶
func (a *Application) Refresh() error
func (*Application) Reopen ¶
func (a *Application) Reopen()
func (*Application) Run ¶
func (a *Application) Run() error
func (*Application) SetFilter ¶
func (a *Application) SetFilter(str string) error
func (*Application) SetPriority ¶
func (a *Application) SetPriority(p int)
func (*Application) ShowDetail ¶
func (a *Application) ShowDetail()
func (*Application) ShowHelp ¶
func (a *Application) ShowHelp()
func (*Application) Stop ¶
func (a *Application) Stop()
func (*Application) Update ¶
func (a *Application) Update() error
type Client ¶
type Client struct { Logger *log.Logger HTTPClient *http.Client // contains filtered or unexported fields }
func (*Client) DeleteTask ¶
func (*Client) ListComments ¶
func (*Client) ListLabels ¶
func (*Client) ListProjects ¶
func (*Client) QuickAddTask ¶
func (*Client) ReopenTask ¶
type Config ¶
type RequestOption ¶
func NewRequestOption ¶
func NewRequestOption() *RequestOption
type Task ¶
type Task struct { ID uint `json:"id"` Content string `json:"content"` ProjectID uint `json:"project_id"` LabelIDs []uint `json:"label_ids"` Priority uint `json:"priority"` Completed bool `json:"completed"` CommentCount uint `json:"comment_count"` Order uint `json:"order"` Indent uint `json:"indent"` URL string `json:"url"` Due struct { Date string `json:"date,omitempty"` Datetime string `json:"datetime,omitempty"` Recurring bool `json:"recurring,omitempty"` String string `json:"string,omitempty"` Timezone string `json:"timezone,omitempty"` } `json:"due"` }
type UI ¶
type UI struct { *tview.Application // contains filtered or unexported fields }
func (*UI) ErrorMessage ¶
func (*UI) FilterStatus ¶
func (*UI) GetSelection ¶
func (*UI) PopupConfirm ¶
func (*UI) PopupInput ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.