checkedrun

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Checkedrun

func Checkedrun(l *lua.LState) int

checkedrun checks if a program is available in the system's PATH and then runs the specified command. For example:

	{
	  "apt": "sudo apt install libsdl2{,-image,-mixer,-ttf,-gfx}-dev",
	  "dnf": "sudo dnf install SDL2{,_image,_mixer,_ttf,_gfx}-devel",
	  "pacman": "sudo pacman -S sdl2{,_image,_mixer,_ttf,_gfx}",
	  "emerge": "emerge -av libsdl2 sdl2-{image,mixer,ttf,gfx}",
	  "brew": "brew install sdl2{,_image,_mixer,_ttf,_gfx} pkg-config",
      "vcpkg": "vcpkg install --triplet x64-windows sdl2 sdl2-image sdl2-mixer sdl2-ttf sdl2-gfx --recurse",
	}

Types

This section is empty.

Jump to

Keyboard shortcuts

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