Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mow.cli, a library for building CLIs #612

Merged
merged 1 commit into from
Dec 10, 2015
Merged

Conversation

jawher
Copy link
Contributor

@jawher jawher commented Oct 8, 2015

A library for building CLI applications.

Why yet another CLI library ?

mow.cli comes with support for what you would expect from any decent CLI library: posix syntax, option groups, commands and sub commands, contextual help, ...

What sets it apart is a sophisticated call validation, by providing a spec string to specify how exactly a command should be called.
For example, here's the spec string you can use with mow.cli to define the call syntax of a cp like command:

[-R [-H | -L | -P]] [-fi | -n] [-apvX] SRC... DST

I've written 2 articles to explain in more details the why and how: 1, 2

mow.cli is fairly well tested (84% coverage), well documented (see godoc) and the code quality is not too bad either (A+ grade).

@jawher jawher changed the title Add mow.cli Add mow.cli, a library for building CLIs Nov 12, 2015
@jawher
Copy link
Contributor Author

jawher commented Nov 12, 2015

Updated the description to add more details.

@dmitshur
Copy link
Collaborator

LGTM.

avelino pushed a commit that referenced this pull request Dec 10, 2015
Add mow.cli, a library for building CLIs
@avelino avelino merged commit 3db0bcf into avelino:master Dec 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants