config

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvGopath = "gopath"

	GitUser      = "git.user"
	GitHost      = "git.host"
	GitProject   = "git.project"
	GitProvider  = "git.provider"
	GitDirectory = "git.directory"
	SourceBranch = "git.default-branch"

	// User, Host, Project, Repo
	CloneSSHURLTmpl = "ssh://%s@%s/%s/%s.git"

	SortRepos        = "repos.sort"
	RepoAliases      = "repos.aliases"
	UnwantedLabels   = "repos.unwanted-labels"
	SkipUnwanted     = "repos.skip-unwanted"
	DefaultReviewers = "repos.reviewers"
	CatalogCacheFile = "repos.cache.filename"
	CatalogCacheTTL  = "repos.cache.ttl"

	CommitAmend   = "commit.amend"
	CommitMessage = "commit.message"

	Branch    = "branch"
	Reviewers = "reviewers"
	AuthToken = "auth-token"

	ChannelBuffer  = "channels.buffer-size"
	MaxConcurrency = "channels.max-concurrency"
)

Variables

View Source
var (
	CfgFile string

	// Version is dynamically set at build time using the -X linker flag.
	// Default value is used for testing and development builds.
	Version = "dev"
)

Functions

func Init

func Init()

Init reads in config file and ENV variables if set.

func LoadFixture added in v0.8.0

func LoadFixture(dir string) error

LoadFixture will load example configuration; for testing only!

Types

This section is empty.

Jump to

Keyboard shortcuts

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