bun

package
v1.34.3 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BunExec

func BunExec(ctx context.Context, le *logrus.Entry, stateDir, filePath string, fileArgs ...string) (*oexec.Cmd, error)

BunExec builds a command to run a script with Bun. stateDir is the directory where bun will be downloaded if not found in PATH. If stateDir is empty, bun must be in the system PATH.

func ResolveBunPath

func ResolveBunPath(ctx context.Context, le *logrus.Entry, stateDir string) (string, error)

ResolveBunPath resolves the path to the bun binary. If bun is in PATH, returns that path. If not, downloads bun to stateDir and returns that path. If stateDir is empty and bun is not in PATH, returns an error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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