plugins/

directory
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: BSD-3-Clause

README

pie plugins for Algernon

Plugins must offer Lua.Code and Lua.Help functions.

See the two plugins examples in this directory for an example of how this can be done.

Lua.Code serves Lua code, while Lua.Help serves help for the available Lua functions. The Lua functions can call other plugin functions with the CallPlugin function in Algernon.

Plugins can be loaded with the Plugin function in Algernon.

Example use

First build the executable plugins/go/go:

cd plugins/go
go build
cd ../..

Then launch Algernon:

algernon -e

Then at the lua> prompt:

Plugin("plugins/go/go")
add3(4,5)

You should get the output 12.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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