config

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 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"
	GitProjects  = "git.projects"
	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"
	SuperSetLabel    = "repos.catch-all"
	DefaultReviewers = "repos.reviewers"
	CatalogCachePath = "repos.cache.path"
	CatalogCacheTTL  = "repos.cache.ttl"

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

	TokenLabel  = "repos.tokens.label"
	TokenSkip   = "repos.tokens.skip"
	TokenForced = "repos.tokens.forced"

	OutputStyle  = "channels.output-style"
	PrintResults = "channels.print-results"
	WaitOnExit   = "channels.wait-on-exit"

	ChannelBuffer  = "channels.buffer-size"
	MaxConcurrency = "channels.max-concurrency"
	WriteBackoff   = "channels.write-backoff"

	GithubHourlyWriteLimit = "github.hourly-write-limit"
	GithubBackoffSmall     = "github.write-backoff-small"
	GithubBackoffLarge     = "github.write-backoff-large"

	// git
	CommitMessage = "git.args.commit.message"
	CommitAmend   = "git.args.commit.amend"
	CommitPush    = "git.args.commit.push"

	// pr
	PrTitle          = "pr.args.title"
	PrDescription    = "pr.args.description"
	PrReviewers      = "pr.args.reviewers"
	PrResetReviewers = "pr.args.reset-reviewers"
	PrAllReviewers   = "pr.args.all-reviewers"
	PrForceMerge     = "pr.args.force-merge"

	// make
	MakeTargets = "make.args.targets"
)

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(ctx context.Context) context.Context

Init reads in config file and ENV variables if set.

func New added in v0.9.6

func New() *viper.Viper

New creates a new Viper instance with default configuration.

func SetViper added in v0.9.6

func SetViper(ctx context.Context, v *viper.Viper) context.Context

SetViper saves the Viper instance into the context.

func Viper added in v0.9.6

func Viper(ctx context.Context) *viper.Viper

Viper retrieves the Viper instance from the context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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