shellgen

package
v0.0.0-...-b872246 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

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 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 synopkg.github.io/devboxell/run/direnv functionality is derived.

func ScriptBody

func ScriptBody(d devboxer, body string) string

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

Jump to

Keyboard shortcuts

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