config

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrConfig = errors.New("config")

Functions

func ProjectRoot

func ProjectRoot() (string, error)

func SetVersion added in v0.0.2

func SetVersion(v, c, d, b string)

func WriteConfig

func WriteConfig(root string, config *Config) error

Types

type Config

type Config struct {
	Project       string `yaml:"-"`
	Root          string `yaml:"root"`
	AdrTemplate   string `yaml:"adrTemplate"`
	IndexTemplate string `yaml:"indexTemplate"`
}

func ReadConfig

func ReadConfig() (*Config, error)

type Version added in v0.0.2

type Version struct {
	Version string
	Commit  string
	BuiltAt string
	BuiltBy string
}

func GetVersion added in v0.0.2

func GetVersion() Version

Jump to

Keyboard shortcuts

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