Documentation
¶
Overview ¶
Package config loads and writes the committed skeeper project config.
Index ¶
Constants ¶
View Source
const ( // Filename is the committed project config file. Filename = ".skeeper.yml" // NamespaceBranchSegment separates a sidecar namespace from branch-specific // sidecar refs. NamespaceBranchSegment = "__branches__" )
Variables ¶
This section is empty.
Functions ¶
func CleanNamespace ¶ added in v0.1.1
CleanNamespace validates a sidecar namespace and returns its canonical slash-separated form.
func DefaultPatterns ¶
func DefaultPatterns() []string
DefaultPatterns returns the interactive init defaults.
func NormalizePatterns ¶ added in v0.1.1
NormalizePatterns validates and canonicalizes doublestar path globs while preserving their order.
Types ¶
type Config ¶
type Config struct {
Sidecar string `yaml:"sidecar"`
Bootstrap string `yaml:"bootstrap,omitempty"`
Namespaces []Namespace `yaml:"namespaces"`
}
Config describes how a project mirrors spec files into its sidecar repo.
type Namespace ¶ added in v0.1.1
type Namespace struct {
Name string `yaml:"name"`
Patterns []string `yaml:"patterns"`
Exclude []string `yaml:"exclude,omitempty"`
}
Namespace routes a set of project files into one sidecar namespace.
func NormalizeNamespaces ¶ added in v0.1.1
NormalizeNamespaces validates and canonicalizes namespace routing rules.
Click to show internal directories.
Click to hide internal directories.