Documentation ¶
Index ¶
- Constants
- func FlakePath(d devboxer) string
- func GenerateForPrintEnv(ctx context.Context, devbox devboxer) error
- func ScriptBody(d devboxer, body string) string
- func ScriptPath(projectDir, scriptName string) string
- func WriteScriptFile(devbox devboxer, name, body string) (err error)
- func WriteScriptsToFiles(devbox devboxer) error
- type NixpkgsInfo
Constants ¶
View Source
const HooksFilename = ".hooks"
HooksFilename is the name of the file that contains the project's init-hooks and plugin 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 synopkg.github.io/devboxell/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
Click to show internal directories.
Click to hide internal directories.