config

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyDatabaseUrl = `database_url`
	KeyGithubToken = `github_token`
	KeyConcurrency = `concurrency`
	KeyTaskMode    = `task_mode`
)
View Source
const (
	DefaultProjectFilepath = `.groundskeeper.yml`
	ScratchMigrationPath   = `.gk_migrations`
)
View Source
const ServiceName = `groundskeeper`

Variables

View Source
var ConfigBackend *viper.Viper = GetViper()

Functions

func AddProjectConfigFlag

func AddProjectConfigFlag(cmd *cobra.Command, dest *string)

func DatabaseURL

func DatabaseURL() string

func GetViper

func GetViper() *viper.Viper

func GithubToken

func GithubToken() string

func IsTaskMode

func IsTaskMode() bool

func MaxConcurrency

func MaxConcurrency() int

func Set

func Set(key string, value any)

func SetDefaults

func SetDefaults(v *viper.Viper)

Types

type ProjectConfig

type ProjectConfig struct {
	MigrationsPath string `yaml:"path,omitempty"`
}

func DefaultProjectConfig

func DefaultProjectConfig() *ProjectConfig

func LoadProjectConfig

func LoadProjectConfig(fs afero.Fs, path string) (*ProjectConfig, error)

func (ProjectConfig) MarshalYAML

func (c ProjectConfig) MarshalYAML() (any, error)

Jump to

Keyboard shortcuts

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