Documentation
¶
Overview ¶
Package projectconfig loads .pbflags.yaml project configuration. The CLI discovers the file by walking up from the working directory, similar to buf.yaml or .goreleaser.yaml.
Index ¶
Constants ¶
View Source
const FileName = ".pbflags.yaml"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
FeaturesPath string `yaml:"features_path"`
}
Config holds project-level pbflags configuration.
func Discover ¶
Discover walks up from startDir looking for .pbflags.yaml. Returns the parsed config and the directory it was found in. Returns a zero Config and empty dir if no file is found (not an error).
func (Config) FeaturesDir ¶
FeaturesDir returns the absolute path to the features directory, resolved relative to the project root. Returns empty string if features_path is not configured.
Click to show internal directories.
Click to hide internal directories.