config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Type    string            `hcl:",key"`
	Options map[string]string `hcl:"options" hcle:"omitempty"`
}

type Config

type Config struct {
	DefaultURL    string  `hcl:"default_url"`
	WorkDirectory string  `hcl:"work_directory"`
	LogFile       string  `hcl:"log_file"`
	Watches       []Watch `hcl:"watch"`
}

func (*Config) Configure

func (c *Config) Configure(configPaths ...string)

Configure uses viper to manage configuration

type Watch

type Watch struct {
	Path    string   `hcl:",key"`
	Actions []Action `hcl:"action"`
}

Jump to

Keyboard shortcuts

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