Documentation ¶
Index ¶
- func Init(dir string) (created bool, err error)
- func IsDefault(path string) bool
- type Config
- func (c *Config) Env() map[string]string
- func (c *Config) Hash() (string, error)
- func (c *Config) IncludedPluginConfigs() []*plugin.Config
- func (c *Config) InitHook() *shellcmd.Commands
- func (c *Config) IsEnvsecEnabled() bool
- func (c *Config) LoadRecursive(lockfile *lock.File) error
- func (c *Config) NixPkgsCommitHash() string
- func (c *Config) PackageMutator() *configfile.PackagesMutator
- func (c *Config) Packages(includeRemovedTriggerPackages bool) []configfile.Package
- func (c *Config) Scripts() configfile.Scripts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Root configfile.ConfigFile // contains filtered or unexported fields }
Config represents a base devbox.json as well as any included plugins it may have.
func DefaultConfig ¶
func DefaultConfig() *Config
func LoadForTest ¶
func (*Config) IncludedPluginConfigs ¶
func (*Config) IsEnvsecEnabled ¶
func (*Config) NixPkgsCommitHash ¶
func (*Config) PackageMutator ¶
func (c *Config) PackageMutator() *configfile.PackagesMutator
func (*Config) Packages ¶
func (c *Config) Packages( includeRemovedTriggerPackages bool, ) []configfile.Package
Returns all packages including those from included plugins. If includeRemovedTriggerPackages is true, then trigger packages that have been removed will also be returned. These are only used for built-ins (e.g. php) when the plugin creates a flake that is meant to replace the original package.
func (*Config) Scripts ¶
func (c *Config) Scripts() configfile.Scripts
Click to show internal directories.
Click to hide internal directories.