NAME
kapsis โ Yet Another CLI builder - Build delightful command line interfaces in seconds. Written in Nim language ๐
SYNOPSIS
INFO
DESCRIPTION
Yet Another CLI builder - Build delightful command line interfaces in seconds. Written in Nim language ๐
README
Kapsis โ Build delightful & intuitive command line interfaces with Nim language ๐
nimble install kapsis
๐ Key Features
- Typed arguments and validation (
path,string,int,bool,float,secondsand more) - Prompters
input,dropdown,secret,checkbox,radio - Commands and Sub commands
- Label separators
- Index Auto alignment
- Doc comments
Example
import commands/clicommands: -- "Source-to-Source" src string(-s), path(
timl), bool(--pretty): ## Transpiletimlcode to a specific target sourceast path(`timl`), filename(`output`): ## Generate binary AST from a `timl` file
Command handles
Kapsis autolinks CLI commands to their command handles. For example, a command called src
autolinks to a command handle srcCommand
import kapsis/[app, cli]proc srcCommand*(v: Values) = displayInfo("Hello")
proc astCommand*(v: Values) = discard
-h, --help, -v and --version are reserved flags.
Database
todo
Plugins
todo let others add more commands to your kapsis app via shared libraries.
TODO
- Fancy Gradientful preloaders
- Fullscreen Session & Keyboard Events
- Auto-generate Bash/Zsh completion scripts
- Pluggable Commands via Shared Libraries
- Built-in database using either
JSONorSQLite
โค Contributions & Support
- ๐ Found a bug? Create a new Issue
- ๐ Wanna help? Fork it!
- ๐ Get โฌ20 in cloud credits from Hetzner
๐ฉ License
MIT license. Made by Humans from OpenPeeps.
Copyright ยฉ 2024 OpenPeeps & Contributors โ All rights reserved.