Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GetConfigPath = func() string { const configBase = ".config/.tdconfig.json" usr, err := os.UserHomeDir() if err != nil { log.Fatalln(err) } return filepath.Join(usr, configBase) }
Functions ¶
func GetContentByEditor ¶
func GetIndexOfListBySha ¶
func WriteConfig ¶
func WriteConfig(conf TdConfig)
Types ¶
type LocalModel ¶
func GetLocalModelByPath ¶
func GetLocalModelByPath(conf *TdConfig, path string) *LocalModel
* Returns a `LocalModel` from based on path. Creates one if there isn't one with the given path.
type TdConfig ¶
type TdConfig struct { Globals []TodoModel Locals []LocalModel }
func ReadConfig ¶
func ReadConfig() TdConfig
Click to show internal directories.
Click to hide internal directories.