Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultConfigPath ¶
DefaultConfigPath returns the absolute default path for the project config file, if possible.
The default path is determined by the FTL_CONFIG environment variable, if set, or by the presence of a Git repository. If the Git repository is found, the default path is the root of the repository with the filename "ftl-project.toml".
Types ¶
type Config ¶
type Config struct { // Path to the config file. Path string `toml:"-"` Name string `toml:"name,omitempty"` Global ConfigAndSecrets `toml:"global,omitempty"` Modules map[string]ConfigAndSecrets `toml:"modules,omitempty"` ModuleDirs []string `toml:"module-dirs,omitempty"` Commands Commands `toml:"commands,omitempty"` FTLMinVersion string `toml:"ftl-min-version,omitempty"` Hermit bool `toml:"hermit,omitempty"` NoGit bool `toml:"no-git,omitempty"` DisableIDEIntegration bool `toml:"disable-ide-integration,omitempty"` }
func (Config) AbsModuleDirs ¶
AbsModuleDirs returns the absolute path for 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.
func MustParseURL ¶
func (URL) MarshalText ¶
func (*URL) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.