Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigPaths ¶ added in v0.157.0
ConfigPaths returns the computed list of configuration paths to load.
func CreateDefaultFileIfNonexistent ¶ added in v0.242.0
CreateDefaultFileIfNonexistent creates the ftl-project.toml file in the Git root if it does not already exist.
func DefaultConfigPath ¶ added in v0.242.0
Types ¶
type Config ¶
type Config struct { Global ConfigAndSecrets `toml:"global"` Modules map[string]ConfigAndSecrets `toml:"modules"` ModuleDirs []string `toml:"module-dirs"` ExternalDirs []string `toml:"external-dirs"` Commands Commands `toml:"commands"` FTLMinVersion string `toml:"ftl-min-version"` }
func LoadConfig ¶ added in v0.157.0
func LoadWritableConfig ¶ added in v0.157.0
LoadWritableConfig loads the last config file in the list of paths, or an empty config if none are found.
func Merge ¶ added in v0.145.0
Merge configuration files.
Config is merged left to right, with later files taking precedence over earlier files.
func (Config) ModuleDirsOrDefault ¶ added in v0.243.2
ModuleDirsOrDefault returns the module-dirs field from the ftl-project.toml, unless that is not defined, in which case it defaults to the root directory.
type ConfigAndSecrets ¶
type URL ¶
A URL that supports marshalling and unmarshalling which is, very frustratingly, not possible with the stdlib url.URL.