run3

package
v1.17.3 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Helper

func Helper(L *lua.LState, command string, workingDir string) int

Helper executes the given shell command in the specified working directory. It converts stdout and stderr into slices of strings (one entry per line) and then uses convert.Strings2table to return two Lua tables. The exit code is also pushed. If the command is empty, both output tables are empty and exit code 1 is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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