Skip to content
Dead simple application launcher using Lua for scripting.
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Add launch to gitignore Oct 4, 2019
README.md Add documentation for creating a command. Oct 17, 2019
commands.go
example.lua Add example.lua Oct 12, 2019
go.mod Replace tabby with termtables. Sep 23, 2019
go.sum Replace tabby with termtables. Sep 23, 2019
launch.go Move commands to inside if os.Args check. Oct 17, 2019
scriptsystem.go Better reporting of errors when loading files. Oct 13, 2019

README.md

Description

Dead simple application launcher using Lua for scripting.

Building

This program is built like any other go program using go build. The only caveat is that the go version must be 1.13 or above.

Creating a Command

  • Make a new file called myscripts.lua in your config directory. The config directories location can be found here: https://golang.org/pkg/os/#UserConfigDir

  • Open myscripts.lua and add

    Commands:addCommand("godoc", "godoc -http=:6060")

    Now build launch using this command

    go build -o launch
    
  • You should be able to launch the command you created using

      ./launch godoc
    
  • Open your browser and navigate to http://localhost:6060/

  • You should now be able to browse the Golang documentation locally.

You can’t perform that action at this time.