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 ¶
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.
Click to show internal directories.
Click to hide internal directories.