shellgen

package
v0.0.0-...-9f43428 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const HooksFilename = ".hooks"

Variables

This section is empty.

Functions

func FlakePath

func FlakePath(d devboxer) string

func GenerateForPrintEnv

func GenerateForPrintEnv(ctx context.Context, devbox devboxer) error

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 ScriptBody(d devboxer, body string) (string, error)

func ScriptPath

func ScriptPath(projectDir, scriptName string) string

func WriteScriptFile

func WriteScriptFile(devbox devboxer, name, body string) (err error)

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

type NixpkgsInfo struct {
	URL    string
	TarURL string
}

Contains default nixpkgs used for mkShell

type SymlinkJoin

type SymlinkJoin struct {
	Name  string
	Paths []string
}

Jump to

Keyboard shortcuts

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