This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/lua5.1 | |
-- Generates a new file/files in a lapis project from a gen-type | |
-- REQUIREMNTS: | |
-- lua5.1, luarocks | |
-- | |
-- Save this script in your $PATH as lapis-gen and give the file execute permissions (chmod +x lapis-gen) | |
-- | |
-- Usage: lapis-gen [-h] <command> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/lua5.1 | |
-- Lapis project initialise script | |
-- REQUIREMENTS: | |
-- lua5.1, luarocks, git | |
-- USAGE: | |
-- Save this script in your $PATH as lapis-new and give the file execute permissions (chmod +x lapis-new) | |
-- Run either: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# NOTE: rewritten in lua, https://gist.github.com/kmafeni04/7c5a40443a9f5fd9d31e73a4bc7c47b0 | |
echo "What would you like to name the project?:" | |
read -r project_name | |
mkdir "$project_name" | |
cd "$project_name" || return | |
luarocks install lapis --lua-version=5.1 |