things

package
v0.0.0-...-0393b2a Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAreas

func GetAreas(conn *sql.DB) (map[string]*Area, error)

func GetTasks

func GetTasks(conn *sql.DB) (map[string]*Task, error)

func Main

func Main(ctx *cli.Context) error

Types

type Area

type Area struct {
	Uuid         string `sql:"uuid"`
	Title        string `sql:"title"`
	Visible      *int   `sql:"visible"`
	Index        int    `sql:"index"`
	CachedTags   []byte `sql:"cachedTags"`
	Experimental []byte `sql:"experimental"`
}

Things database schema as of 2023-06-01, this may have changed if you're reading this from ~ the future ~.

type AreaTag

type AreaTag struct {
	Area string `sql:"areas"`
	Tags string `sql:"tags"`
}

func GetAreaTags

func GetAreaTags(conn *sql.DB) ([]AreaTag, error)

type Tag

type Tag struct {
	Uuid         string  `sql:"uuid"`
	Title        string  `sql:"title"`
	Shortcut     string  `sql:"shortcut"`
	UsedDate     float32 `sql:"usedDate"`
	Parent       string  `sql:"parent"`
	Index        int     `sql:"index"`
	Experimental []byte  `sql:"experimental"`
}

func GetTags

func GetTags(conn *sql.DB) ([]Tag, error)

type Task

type Task struct {
	Uuid                             string   `sql:"uuid"`
	LeavesTombstone                  int      `sql:"leavesTombstone"`
	CreationDate                     float32  `sql:"creationDate"`
	UserModificationDate             *float32 `sql:"userModificationDate"`
	Type                             int      `sql:"type"`
	Status                           int      `sql:"status"`
	StopDate                         *float32 `sql:"stopDate"`
	Trashed                          int      `sql:"trashed"`
	Title                            string   `sql:"title"`
	Notes                            string   `sql:"notes"`
	NotesSync                        int      `sql:"notesSync"`
	CachedTags                       []byte   `sql:"cachedTags"`
	Start                            int      `sql:"start"`
	StartDate                        *int     `sql:"startDate"`
	StartBucket                      int      `sql:"startBucket"`
	ReminderTime                     *int     `sql:"reminderTime"`
	LastReminderInteractionDate      *float32 `sql:"lastReminderInteractionDate"`
	Deadline                         *int     `sql:"deadline"`
	DeadlineSuppressionDate          *int     `sql:"deadlineSuppressionDate"`
	T2_deadlineOffset                int      `sql:"t2_deadlineOffset"`
	Index                            int      `sql:"index"`
	TodayIndex                       int      `sql:"todayIndex"`
	TodayIndexReferenceDate          *int     `sql:"todayIndexReferenceDate"`
	Area                             *string  `sql:"area"`
	Project                          *string  `sql:"project"`
	Heading                          *string  `sql:"heading"`
	Contact                          *string  `sql:"contact"`
	UntrashedLeafActionsCount        int      `sql:"untrashedLeafActionsCount"`
	OpenUntrashedLeafActionsCount    int      `sql:"openUntrashedLeafActionsCount"`
	ChecklistItemsCount              int      `sql:"checklistItemsCount"`
	OpenChecklistItemsCount          int      `sql:"openChecklistItemsCount"`
	Rt1_RepeatingTemplate            *string  `sql:"rt1_repeatingTemplate"`
	Rt1_RecurrenceRule               []byte   `sql:"rt1_recurrenceRule"`
	Rt1_InstanceCreationStartDate    *int     `sql:"rt1_instanceCreationStartDate"`
	Rt1_InstanceCreationPaused       *int     `sql:"rt1_instanceCreationPaused"`
	Rt1_InstanceCreationCount        *int     `sql:"rt1_instanceCreationCount"`
	Rt1_AfterCompletionReferenceDate *int     `sql:"rt1_afterCompletionReferenceDate"`
	Rt1_NextInstanceStartDate        *int     `sql:"rt1_nextInstanceStartDate"`
	Experimental                     []byte   `sql:"experimental"`
	Repeater                         []byte   `sql:"repeater"`
	RepeaterMigrationDate            *float32 `sql:"repeaterMigrationDate"`
}

func (*Task) Hierarchy

func (t *Task) Hierarchy(areas map[string]*Area, tasks map[string]*Task) TaskHierarchy

func (*Task) IsActive

func (t *Task) IsActive() bool

func (*Task) Render

func (t *Task) Render() ([]byte, error)

func (*Task) ScheduledBlock

func (t *Task) ScheduledBlock() string

type TaskHierarchy

type TaskHierarchy struct {
	Area    *Area
	Project *Task
	Heading *Task
}

func (TaskHierarchy) Path

func (t TaskHierarchy) Path() string

type TaskTag

type TaskTag struct {
	Task string `sql:"tasks"`
	Tags string `sql:"tags"`
}

func GetTaskTags

func GetTaskTags(conn *sql.DB) ([]TaskTag, error)

Jump to

Keyboard shortcuts

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