Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InboxProject = Project{ ID: "inbox", Name: "📥Inbox", Color: project.DefaultColor, SortOrder: 0, Closed: false, Kind: project.KindTask, ViewMode: project.ViewModeList, }
InboxProject the Inbox project representation (cause is not returned by the api)
View Source
var NullProject = Project{}
View Source
var OutputFormatCompletion = []cobra.Completion{ cobra.CompletionWithDesc("simple", "Simple output format"), cobra.CompletionWithDesc("json", "JSON output format"), }
View Source
var OutputFormatCompletionFunc = cobra.FixedCompletions(OutputFormatCompletion, cobra.ShellCompDirectiveNoFileComp)
Functions ¶
func GetRangeFromString ¶ added in v0.0.2
func GetRangeFromString(timeRange string) (start TickTickTime, end TickTickTime, err error)
Types ¶
type ChecklistItem ¶
type OutputFormat ¶
type OutputFormat string
const ( OutputSimple OutputFormat = "simple" OutputJSON OutputFormat = "json" )
func (*OutputFormat) Set ¶
func (o *OutputFormat) Set(value string) error
func (OutputFormat) String ¶
func (o OutputFormat) String() string
func (OutputFormat) Type ¶
func (o OutputFormat) Type() string
type Project ¶
type Project struct {
ID string `json:"id"`
Name string `json:"name"`
Color project.Color `json:"color"`
SortOrder int64 `json:"sortOrder"`
Closed bool `json:"closed"`
GroupID string `json:"groupId"`
ViewMode project.ViewMode `json:"viewMode"`
Permission string `json:"permission"`
Kind project.Kind `json:"kind"`
}
type ProjectData ¶
type Task ¶
type Task struct {
ID string `json:"id"`
ProjectID string `json:"projectId"`
Title string `json:"title"`
IsAllDay bool `json:"isAllDay"`
CompletedTime TickTickTime `json:"completedTime,omitzero"`
Content string `json:"content"`
Desc string `json:"desc"`
DueDate TickTickTime `json:"dueDate,omitzero"`
Items []ChecklistItem `json:"items"`
Priority task.Priority `json:"priority"`
Reminders []string `json:"reminders"`
RepeatFlag string `json:"repeatFlag"`
SortOrder int64 `json:"sortOrder"`
StartDate TickTickTime `json:"startDate,omitzero"`
Status task.Status `json:"status"`
TimeZone string `json:"timeZone"`
Tags []string `json:"tags"`
}
type TickTickTime ¶
func (TickTickTime) Humanize ¶
func (t TickTickTime) Humanize() string
func (TickTickTime) MarshalJSON ¶
func (t TickTickTime) MarshalJSON() ([]byte, error)
func (TickTickTime) String ¶
func (t TickTickTime) String() string
func (*TickTickTime) UnmarshalJSON ¶
func (t *TickTickTime) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.