Skip to main content

Lua environment manager

Project description

(🌑) luamb

Lua environment manager built on top of hererocks.

Installation

Examples

  • create environment ‘myproject’ with latest Lua 5.2 (5.2.4), latest LuaRocks and associate it with /home/user/projects/myproject:

    $ luamb mk myproject -l 5.2 -r latest -a /home/user/projects/myproject
  • create environment ‘jittest’ with LuaJIT 2.0.4, without LuaRocks and associate it with /home/user/projects/jitproj:

    $ luamb mk myproject -j 2.0.4 -a /home/user/projects/jitproj
  • set LuaJIT 2.0 (2.0.4) and latest LuaRocks version by default:

    $ export LUAMB_LUA_DEFAULT=luajit2.0
    $ export LUAMB_LUAROCKS_DEFAULT=latest
  • create environment ‘newenv’ with default versions and without associated project directory:

    $ luamb mk newenv
  • create environment ‘norocks’ with default Lua version (LuaJIT 2.0.4) and without LuaRocks (verbose mode):

    $ luamb mk norocs --no-luarocks --verbose
  • activate ‘newenv’ environment:

    $ luamb on newenv
  • deactivate current environment:

    $ luamb off
  • delete ‘myproject’ environment (it will remove env dir only, not project dir):

    $ luamb rm myproject

Commands

Each command has one or more alias.

on | activate — activate existing environment

off | disable — deactivate current environment

mk | new | create — create new environment

rm | remove | del — delete existing environment

ls | list — list all environments

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

luamb-0.1.0.tar.gz (6.8 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page