cli-def

A declarative DSL for defining and running composable CLI applications.

Example

[cli]
key = "Your CLI"
help = "New approach to defining your CLI"

[cli.hello]
help = "Hello, Someone"
args = [
    {key="someone", mult="1", type="str"}
]

Run

$ cli-def run example.toml -- hello World

REPL

$ cli-def repl --file example.toml
cli-def> hello World
View on GitHub