cfg

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hook

type Hook struct {
	Command string   `json:"command"`
	Args    []string `json:"args"`
	Script  string   `json:"script"`
}

type SinceConfig

type SinceConfig struct {
	Before        []Hook   `yaml:"before"`
	After         []Hook   `yaml:"after"`
	RequireBranch string   `yaml:"requireBranch"`
	Ignore        []string `yaml:"ignore"`
}

func LoadConfig

func LoadConfig(dir string) (SinceConfig, error)

LoadConfig loads the YAML config file from the given directory.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳