Small Lua library for shell scripting.
To start writing shell scripts, read the LDoc documentation.
Install the lsh wrapper:
nix profile install github:tvbeat/lsh
Use the wrapper to run Lua scripts:
lsh <script.lua>
To use lsh as a library in another flake, add the overlay.
It adds lsh to the LuaJIT package set:
pkgs = import nixpkgs {
inherit system;
overlays = [ lsh.overlays.default ];
};
pkgs.luajit.withPackages (ps: [ ps.lsh ])Build:
nix build
Test:
nix develop --command busted
Run the tests and the selene linter:
nix flake check
Format the Nix files:
nix fmt
Build the documentation:
nix build .#doc
MIT, see LICENSE.