Skip to content
tvbeatPublic

About

Small lua shell library

Resources

Stars

0 stars

Watchers

10 watching

Forks

Repository files navigation

lsh

Small Lua library for shell scripting.

Documentation

To start writing shell scripts, read the LDoc documentation.

Install and use (Nix)

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 ])

Develop

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

License

MIT, see LICENSE.

About

Small lua shell library

Resources

Stars

0 stars

Watchers

10 watching

Forks

Releases

Packages

Contributors

Languages