https://github.com/f4z3r/moap-lua-cli
Mother of all Projects for my own Lua CLIs
https://github.com/f4z3r/moap-lua-cli
cli lua
Last synced: 5 months ago
JSON representation
Mother of all Projects for my own Lua CLIs
- Host: GitHub
- URL: https://github.com/f4z3r/moap-lua-cli
- Owner: f4z3r
- License: mit
- Created: 2025-02-10T19:12:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-10T20:27:34.000Z (over 1 year ago)
- Last Synced: 2025-02-10T21:30:47.222Z (over 1 year ago)
- Topics: cli, lua
- Language: Lua
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# MOAP for Lua CLIs
This project serves as the mother of all projects (MOAP) for my LuaJIT based CLI tools. It contains
a base structure to quickly extend it with commands, configure it via environment variables, and run
external commands.
It uses the following libraries by default:
- `argparse` for command parsing,
- `rapidjson` for JSON parsing,
- `http` for network requests,
- `luatext` for colored output.
## Development
You can setup a dev environment with the needed Lua version:
```sh
# launch shell with some lua version and the dependencies installed:
nix develop .#lua52
```
## Roadmap
Generally, my CLI implement the following features that should be migrated into this MOAP:
- A standardized way to output results in JSON.
- A standardized way of performing error handling and fail intelligently for CLI standards.
- Spinners and progress bars.
- Standard utilities for executing external programs, or socket communication with other processes.