devopt

package
v0.0.0-...-2e92837 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddOpts

type AddOpts struct {
	AllowInsecure    []string
	Platforms        []string
	ExcludePlatforms []string
	DisablePlugin    bool
	Patch            string
	Outputs          []string
}

type Credentials

type Credentials struct {
	IDToken string
	// TODO We can just parse these out, but don't want to add a dependency right now
	Email string
	Sub   string
}

type EnvExportsOpts

type EnvExportsOpts struct {
	EnvOptions     EnvOptions
	NoRefreshAlias bool
	RunHooks       bool
}

type EnvFlags

type EnvFlags struct {
	EnvMap  map[string]string
	EnvFile string
}

type EnvOptions

type EnvOptions struct {
	Hooks             LifecycleHooks
	OmitNixEnv        bool
	PreservePathStack bool
	Pure              bool
	SkipRecompute     bool
}

EnvOptions configure the Devbox Environment in the `computeEnv` function. - These options are commonly set by flags in some Devbox commands like `shellenv`, `shell` and `run`. - The struct is designed for the "common case" to be zero-initialized as `EnvOptions{}`.

type GenerateOpts

type GenerateOpts struct {
	ForType  string
	Force    bool
	RootUser bool
}

type LifecycleHooks

type LifecycleHooks struct {
	// OnStaleState is called when the Devbox state is out of date
	OnStaleState func()
}

type Opts

type Opts struct {
	Dir                      string
	Env                      map[string]string
	Environment              string
	IgnoreWarnings           bool
	CustomProcessComposeFile string
	Stderr                   io.Writer
}

type ProcessComposeOpts

type ProcessComposeOpts struct {
	ExtraFlags         []string
	Background         bool
	ProcessComposePort int
}

type PullboxOpts

type PullboxOpts struct {
	Overwrite   bool
	URL         string
	Credentials Credentials
}

type UpdateOpts

type UpdateOpts struct {
	Pkgs                  []string
	NoInstall             bool
	IgnoreMissingPackages bool
}

Jump to

Keyboard shortcuts

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