https://github.com/ellemenno/cli0
cli zero —a simple shell script skeleton with no dependencies
https://github.com/ellemenno/cli0
bash cli command-line example script shell tool
Last synced: 11 months ago
JSON representation
cli zero —a simple shell script skeleton with no dependencies
- Host: GitHub
- URL: https://github.com/ellemenno/cli0
- Owner: ellemenno
- License: mit
- Created: 2021-05-22T15:06:44.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-09T17:24:38.000Z (about 4 years ago)
- Last Synced: 2025-01-08T20:39:13.649Z (about 1 year ago)
- Topics: bash, cli, command-line, example, script, shell, tool
- Language: Shell
- Homepage:
- Size: 40 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `cli0`
_(cleo)_ cli zero —a simple shell script skeleton with no dependencies
Good for whipping up a quick command line interface with some familiar comforts:
- argument parsing
- usage info
- colored output (when appropriate) that goes to [the right place](https://web.archive.org/web/20201204114029/http://www.jstorimer.com/blogs/workingwithcode/7766119-when-to-use-stderr-instead-of-stdout)
## usage
`cli0` doesn't really do anything out of the box; it provides a template to be modified for your own purposes:
```console
$ ./cli0
provides the skeleton of a simple cli
usage:
cli0 [ | --]
options:
-h --help show this usage info
say, see, flip
```
`cli0` provides sample service implementations to exercise the template and output formatting options:


