Package: luamb
(🌑) luambLua environment manager built on top ofhererocksand inspired byvirtualenvwrapper.Supported shellsBashZshInstallationInstallluambusingpip(hererockswill be installed automatically):pipinstall[--user]luambCreate a directory for environments:mkdir$HOME/.luambenvsConfigure your shell (add these lines to~/.bashrcor~/.zshrc):# path to the directory with environmentsexportLUAMB_DIR=$HOME/.luambenvs# optional variables:exportLUAMB_LUA_DEFAULT='lua 5.3'# default Lua versionexportLUAMB_LUAROCKS_DEFAULT=latest# default LuaRocks versionLUAMB_DISABLE_COMPLETION=true# disable shell completionsLUAMB_PYTHON_BIN=/usr/bin/python3# explicitly set Python executable# make some magicsource<(luambshellsrc)# or if luamb executable is not in PATH:source<("$LUAMB_PYTHON_BIN"-mluambshellsrc)Try to execute in a new shell:luamb--helpExamplesCreate an environment 'myproject' with the latest Lua 5.2 (5.2.4), the latest LuaRocks and associate it with /home/user/projects/myproject:luambmkmyproject-l5.2-rlatest-a/home/user/projects/myprojectCreate an environment 'jittest' with LuaJIT 2.0.4, without LuaRocks and associate it with /home/user/projects/jitproj:luambmkjittest-j2.0.4-a/home/user/projects/jitprojSet the latest LuaJIT 2.0 (2.0.5) and the latest LuaRocks version by default:exportLUAMB_LUA_DEFAULT='luajit 2.0'exportLUAMB_LUAROCKS_DEFAULT=latestCreate an environment 'newenv' with the default versions and without associated project directory:luambmknewenvCreate an environment 'norocks' with the default Lua version (LuaJIT 2.0.5) and without LuaRocks (verbose mode):luambmknorocks--no-luarocks--verboseActivate the 'newenv' environment:luambonnewenvDeactivate the current environment:luamboffDelete the 'myproject' environment (it will remove the environment directory only, not the project one):luambrmmyprojectCommandsEach command has one or more aliases.on|enable|activate— activate an environmentoff|disable|deactivate— deactivate the current environmentmk|new|create— create a new environmentrm|remove|del|delete— remove an environmentinfo|show— Show the details for a single virtualenvls|list— list all of the environmentsVersion history0.4.0 (2020-06-27)BREAKING CHANGESRemove version parsing magicluamb mknow accepts the same version specifiers ashererocks.lua/luajitprefixes are not allowed anymore, use a bare version specifier (e.g.,-l 5.1instead of-l lua5.1).A value of theLUAMB_LUA_DEFAULTenvironment variable must conform to the following format:interpreter version_specifier(e.g.,lua 5.3,luajit latest,moonjit 2.2,raptorjit repo@tag,lua /path/to).A value of theLUAMB_LUAROCKS_DEFAULTenvironment variable must contain only a version specifier (e.g.,3.3.0,2.1,latest,repo@tag,/path/to), therocks/luarocksprefix is not allowed anymore.Move shell code to a Python moduleThe code can now be retrieved with theluamb shellsrccommand. Usesource <(luamb shellsrc)to load theluambfunction into the current shell.Enable shell completion by defaultSet theLUAMB_DISABLE_COMPLETIONenvironment variable totrueto disable the completion.
TheLUAMB_COMPLETIONenvironment variable was removed.AddedAdd support for RaptorJIT and moonjitAdd--list-versionsflag tomkcommandAdd--shortflag tolscommand0.3.0 (2018-07-24)Add git URIs and local paths supportAdd hererocks non-zero status handlingWrap hererocks deactivate-lua function to deactivate environment properlyAdd some new aliases0.2.1 (2018-03-25)Bugfix release0.2.0 (2017-08-29)Zsh support0.1.2 (2016-08-24)OS X support (usinggreadlink)0.1.1 (2016-07-23)Bash completion0.1.0 (2016-07-20)Initial releaseLicenseTheMIT License.