bootstrap

package
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyPackLoader

func ApplyPackLoader(p *scriptling.Scriptling, packLoader *pack.Loader)

ApplyPackLoader adds the package loader behind the current interpreter loader.

func BaseDir

func BaseDir(file string) (string, error)

BaseDir returns the script directory, or the current working directory when no file is provided.

func BuildLibDirs

func BuildLibDirs(baseDir string, extra []string) []string

BuildLibDirs constructs the ordered list of library search directories.

func ChainLoader

func ChainLoader(primary, fallback scriptling.LibraryLoader) scriptling.LibraryLoader

ChainLoader combines a primary and fallback loader.

func NewPackLoader

func NewPackLoader(sources []string, insecure bool, cacheDir string) (*pack.Loader, error)

NewPackLoader loads package sources into a loader.

func ParseAllowedPaths

func ParseAllowedPaths(paths string) []string

ParseAllowedPaths parses a comma-separated list of paths. Returns nil for no restrictions, empty slice for deny-all (paths == "-").

Types

This section is empty.

Jump to

Keyboard shortcuts

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