devconfig

package
v0.0.0-...-b4a2add Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(dir string) (created bool, err error)

func IsDefault

func IsDefault(path string) bool

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 LoadConfigFromURL

func LoadConfigFromURL(ctx context.Context, url string) (*Config, error)

func LoadForTest

func LoadForTest(path string) (*Config, error)

func Open

func Open(projectDir string) (*Config, error)

func (*Config) Env

func (c *Config) Env() map[string]string

func (*Config) Hash

func (c *Config) Hash() (string, error)

func (*Config) IncludedPluginConfigs

func (c *Config) IncludedPluginConfigs() []*plugin.Config

func (*Config) InitHook

func (c *Config) InitHook() *shellcmd.Commands

func (*Config) IsEnvsecEnabled

func (c *Config) IsEnvsecEnabled() bool

func (*Config) LoadRecursive

func (c *Config) LoadRecursive(lockfile *lock.File) error

func (*Config) NixPkgsCommitHash

func (c *Config) NixPkgsCommitHash() string

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL