config

package
v0.0.0-...-884dcaa Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigPath

func GetConfigPath() string

Types

type Config

type Config struct {
	DefaultContext string         `json:"default_context,omitempty"`
	AppKey         string         `json:"app_key,omitempty"`
	Token          string         `json:"token,omitempty"`
	WorkConfig     WorkConfig     `json:"work_config,omitempty"`
	PersonalConfig PersonalConfig `json:"personal_config,omitempty"`
	ShoppingConfig ShoppingConfig `json:"shopping_config,omitempty"`
	ProjectsConfig ProjectsConfig `json:"projects_config,omitempty"`
}

func LoadConfig

func LoadConfig(pathToConfig string) (*Config, error)

func (*Config) WriteConfig

func (c *Config) WriteConfig() error

type PersonalConfig

type PersonalConfig struct {
	BoardID        string           `json:"board_id,omitempty"`
	RecurringTasks []RecurringTasks `json:"recurring_tasks,omitempty"`
}

type ProjectsConfig

type ProjectsConfig struct {
	BoardID string `json:"board_id"`
}

type RecurringTasks

type RecurringTasks struct {
	Name   string   `json:"name,omitempty"`
	ListID string   `json:"listid,omitempty"`
	Labels []string `json:"labels,omitempty"`
}

type ShoppingConfig

type ShoppingConfig struct {
	BoardID      string `json:"board_id"`
	ListCardName string `json:"list_card_name"`
}

type WorkConfig

type WorkConfig struct {
	BoardID string `json:"board_id,omitempty"`
}

Jump to

Keyboard shortcuts

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