Documentation ¶
Index ¶
Constants ¶
const ( FilterTypeBlock = "FILTER_TYPE_BLOCK" FilterTypeDocument = "FILTER_TYPE_DOCUMENT" )
Variables ¶
var ErrRootConfigNotFound = errors.New("root configuration file not found")
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ProjectRoot string ProjectFilename string ProjectFindRepoUpward bool ProjectIgnorePaths []string ProjectDisableGitignore bool ProjectEnvUseSystemEnv bool ProjectEnvSources []string ProjectFilters []*Filter RuntimeDockerEnabled bool RuntimeDockerImage string RuntimeDockerBuildContext string RuntimeDockerBuildDockerfile string ServerAddress string ServerTLSEnabled bool ServerTLSCertFile string ServerTLSKeyFile string LogEnabled bool LogPath string LogVerbose bool }
Config is a flatten configuration of runme.yaml. The purpose of it is to unify all the different configuration versions into a single struct.
type FilterBlockEnv ¶
type FilterBlockEnv struct { Background bool `expr:"background"` Categories []string `expr:"categories"` CloseTerminalOnSuccess bool `expr:"close_terminal_on_success"` Cwd string `expr:"cwd"` ExcludeFromRunAll bool `expr:"exclude_from_run_all"` Interactive bool `expr:"interactive"` IsNamed bool `expr:"is_named"` Language string `expr:"language"` Name string `expr:"name"` PromptEnv bool `expr:"prompt_env"` }
FilterBlockEnv is the environment with fields corresponding to the options documented on https://docs.runme.dev/configuration/cell-level. Cell options are converted to this environment before evaluating the filter.
The `expr` tag is used to map the field to the corresponding option. Without it, all variables start with capitalized letters.
type FilterDocumentEnv ¶
FilterDocumentEnv is the environment with fields corresponding to the options documented on https://docs.runme.dev/configuration/document-level. Document options are converted to this environment before evaluating the filter.
type Loader ¶ added in v3.3.1
type Loader struct {
// contains filtered or unexported fields
}
Loader allows to load configuration files from a file system.
func NewLoader ¶ added in v3.3.1
func NewLoader(configName, configType string, configRootPath fs.FS, opts ...LoaderOption) *Loader
func (*Loader) FindConfigChain ¶ added in v3.3.1
func (*Loader) RootConfig ¶ added in v3.3.1
func (*Loader) SetConfigRootPath ¶ added in v3.3.1
type LoaderOption ¶ added in v3.3.1
type LoaderOption func(*Loader)
func WithLogger ¶ added in v3.3.1
func WithLogger(logger *zap.Logger) LoaderOption
func WithProjectRootPath ¶ added in v3.3.1
func WithProjectRootPath(projectRootPath fs.FS) LoaderOption
Directories ¶
Path | Synopsis |
---|---|
autoconfig provides a way to create instances of objects based on the configuration in runme.yaml.
|
autoconfig provides a way to create instances of objects based on the configuration in runme.yaml. |