Documentation ¶
Index ¶
- Constants
- func FlakePath(d devboxer) string
- func GenerateForPrintEnv(ctx context.Context, devbox devboxer) error
- func ScriptBody(d devboxer, body string) (string, error)
- func ScriptPath(projectDir, scriptName string) string
- func WriteScriptFile(devbox devboxer, name, body string) (err error)
- func WriteScriptsToFiles(devbox devboxer) error
- type NixpkgsInfo
- type SymlinkJoin
Constants ¶
View Source
const HooksFilename = ".hooks"
Variables ¶
This section is empty.
Functions ¶
func GenerateForPrintEnv ¶
GenerateForPrintEnv will create all the files necessary for processing devbox.PrintEnv, which is the core function from which devbox shell/run/direnv functionality is derived.
func ScriptBody ¶
func ScriptPath ¶
func WriteScriptFile ¶
func WriteScriptsToFiles ¶
func WriteScriptsToFiles(devbox devboxer) error
WriteScriptsToFiles writes scripts defined in devbox.json into files inside .devbox/gen/scripts. Scripts (and hooks) are persisted so that we can easily call them from devbox run (inside or outside shell).
Types ¶
type NixpkgsInfo ¶
Contains default nixpkgs used for mkShell
type SymlinkJoin ¶
Click to show internal directories.
Click to hide internal directories.