config

package
v0.2.1-0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2020 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Find

func Find(wd string, existFile ExistFile) (string, bool, error)

func Read

func Read(p string, cfg *Config) error

Types

type Config

type Config struct {
	Post map[string]string
	Exec map[string][]ExecConfig
}

type ExecConfig

type ExecConfig struct {
	When        string
	Template    string
	DontComment bool `yaml:"dont_comment"`
}

type ExistFile

type ExistFile func(string) bool

Jump to

Keyboard shortcuts

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