Documentation ¶
Overview ¶
Package devbox creates isolated development environments.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExportifySystemPathWithoutWrappers ¶
func ExportifySystemPathWithoutWrappers() string
ExportifySystemPathWithoutWrappers reads $PATH, removes `virtenv/.wrappers/bin` paths, and returns a string of the form `export PATH=....`
This small utility function could have been inlined in the boxcli caller, but needed the impl.exportify functionality. It does not depend on core-devbox.
func GlobalDataPath ¶
func InitConfig ¶
InitConfig creates a default devbox config file if one doesn't already exist.
Types ¶
type Devbox ¶
type Devbox interface { Add(ctx context.Context, platforms, excludePlatforms []string, pkgs ...string) error Config() *devconfig.Config EnvVars(ctx context.Context) ([]string, error) Info(ctx context.Context, pkg string, markdown bool) (string, error) Install(ctx context.Context) error IsEnvEnabled() bool ListScripts() []string NixEnv(ctx context.Context, opts devopt.NixEnvOpts) (string, error) PackageNames() []string ProjectDir() string Pull(ctx context.Context, opts devopt.PullboxOpts) error Push(ctx context.Context, opts devopt.PullboxOpts) error Remove(ctx context.Context, pkgs ...string) error RunScript(ctx context.Context, scriptName string, scriptArgs []string) error Shell(ctx context.Context) error Update(ctx context.Context, opts devopt.UpdateOpts) error // Interact with services ListServices(ctx context.Context) error RestartServices(ctx context.Context, services ...string) error Services() (services.Services, error) StartProcessManager(ctx context.Context, requestedServices []string, background bool, processComposeFileOrDir string) error StartServices(ctx context.Context, services ...string) error StopServices(ctx context.Context, allProjects bool, services ...string) error // Generate files Generate(ctx context.Context) error GenerateDevcontainer(ctx context.Context, generateOpts devopt.GenerateOpts) error GenerateDockerfile(ctx context.Context, generateOpts devopt.GenerateOpts) error GenerateEnvrcFile(ctx context.Context, force bool, envFlags devopt.EnvFlags) error }
Devbox provides an isolated development environment.
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
internal
|
|
conf
Package conf is future home of the config (devbox.json) management code.
|
Package conf is future home of the config (devbox.json) management code. |
cuecfg
Utilities for working with config files that rely on cue for validation and definition.
|
Utilities for working with config files that rely on cue for validation and definition. |
impl
Package impl creates isolated development environments.
|
Package impl creates isolated development environments. |
nix
Package nix provides Go API for nix.
|
Package nix provides Go API for nix. |
nix/nixstore
Package nixstore queries and resolves Nix store packages.
|
Package nixstore queries and resolves Nix store packages. |
redact
Package redact implements functions to redact sensitive information from errors.
|
Package redact implements functions to redact sensitive information from errors. |
testscripts
|
|
Click to show internal directories.
Click to hide internal directories.