shellgen

package
v0.0.0-...-0d3f7f9 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HooksFilename = ".hooks"
)

HooksFilename is the name of the file that contains a wrapper of the project's init-hooks and plugin 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