detj / meow-subcommands

A simple proof-of-concept prototype demonstrating a way to implement subcommands using meow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Subcommands in meow

A simple proof-of-concept prototype demonstrating a way to implement subcommands using meow.

Proof of Concept: This project is not a library or utility. It exists just for demonstration purpose.

Why?

meow is nice and simple. You can use it to quickly build CLI utilities for whatever that you wanna do. But, it doesn't support an extra layer of commands natively. If you wish to design your interface like the Docker CLI or git CLI but with meow, then you might find this useful.

$ docker ps ...
$ docker run ...

Installation

After cloning, install dependencies

npm install

Usage

Try out these commands

node index --help
node index -h
node index --version
node index -v

node index walk
node index run
node index walk --help
node index run --help

node index walk --slow
node index walk -s
node index walk --fast
node index walk -f

Issues

If you have any question, feel free to open an issue.

About

A simple proof-of-concept prototype demonstrating a way to implement subcommands using meow

License:MIT License


Languages

Language:JavaScript 100.0%