util

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoCommit

func AutoCommit(f func(client todoist.Client, ctx context.Context) error) error

func FilterTableString

func FilterTableString(filters []todoist.Filter) string

func ItemTableString

func ItemTableString(items []todoist.Item, relations todoist.ItemRelations, f func(item todoist.Item) todoist.Time) string

func LabelTableString

func LabelTableString(labels []todoist.Label) string

func NewClient

func NewClient() (*todoist.Client, error)

func ProcessID added in v0.2.0

func ProcessID(id string, f func(todoist.ID) error) error

func ProcessIDs

func ProcessIDs(ids []string, f func([]todoist.ID) error) error

func ProjectTableString

func ProjectTableString(projects []todoist.Project) string

func StringWidthWithoutColor

func StringWidthWithoutColor(s string) int

func TableString

func TableString(rows [][]todoist.ColorStringer) string

Types

type Config added in v0.1.4

type Config struct {
	Token string `json:"token"`
}

Jump to

Keyboard shortcuts

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