config

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultConfigFile string
	DefaultOutputFile string
)

Functions

This section is empty.

Types

type AutoSync

type AutoSync struct {
	Interval time.Duration `yaml:"interval"`
	LastRun  time.Time     `yaml:"last_run"`
}

func (*AutoSync) Run

func (a *AutoSync) Run()

func (*AutoSync) ShouldRun

func (a *AutoSync) ShouldRun() bool

type Config

type Config struct {
	DevFolders map[string]*folders.FolderCollection `yaml:"dev_folders"`
	AutoSync   AutoSync                             `yaml:"auto_sync"`
}

func GetDefaultConfig

func GetDefaultConfig() *Config

func LoadConfigFile

func LoadConfigFile(filename string) (config *Config, err error)

func (*Config) Save

func (c *Config) Save(filename string) error

Jump to

Keyboard shortcuts

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