Write doc in your shell scripts.
Project description
Shellman
Write doc in your shell scripts.
Shellman is a Python script that read files, search for special comment lines (documentation) and output formatted documentation as text, markdown or man page.
License
Software licensed under MPL 2.0 license.
Installation
pip install shellman
Documentation
Development
To run all the tests: tox
Usage
shellman FILE
# equivalent to...
SHELLMAN_FORMAT=text shellman FILE
# also available:
SHELLMAN_FORMAT=man shellman FILE
SHELLMAN_FORMAT=markdown shellman FILE
The script does not currently handle arguments, except for the file name.
In a script, for automatic help text:
#!/bin/bash
## \brief Just a demo
## \desc This script actually does nothing.
main() {
case "$1" in
## \option -h, --help
## Print this help and exit.
-h|--help) shellman.py "$0"; exit 0 ;;
esac
}
## \usage demo [-h]
main "$@"
Output when calling ./demo -h:
Usage: demo [-h]
This script actually does nothing.
Options:
-h, --help
Print this help and exit.
Changelog
0.1.0 (2016-11-30)
Alpha release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
shellman-0.1.0.tar.gz
(21.1 kB
view details)
Built Distributions
shellman-0.1.0-py3.5.egg
(27.6 kB
view details)
File details
Details for the file shellman-0.1.0.tar.gz
.
File metadata
- Download URL: shellman-0.1.0.tar.gz
- Upload date:
- Size: 21.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78753bfceeb559d8547dd4974059232bbf915f0066cb746a7436aa9313a91c8d |
|
MD5 | 12c795492d1bc5c0a3a66639122803ea |
|
BLAKE2b-256 | 203ffcb8e44a09833d8887913d95e78028bd3cd871ad0461e397d2d00f679ef0 |
File details
Details for the file shellman-0.1.0-py3.5.egg
.
File metadata
- Download URL: shellman-0.1.0-py3.5.egg
- Upload date:
- Size: 27.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a7402e8d303f0d41b53f960580d59d38ce5a2632c75b8d4cdcd2436b7e0d902 |
|
MD5 | 110997775f051b5cc381ee11a1aba313 |
|
BLAKE2b-256 | 120b2668cb437f03623c326e08a51ecd1c4d7d999fb056db0bb04421e8b4144f |
File details
Details for the file shellman-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: shellman-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 14.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e395ce10470c52672f477febc5832989979498455df7d507060a98b2d798855f |
|
MD5 | 7f0c9f13663566f7ddd6d44340010a8e |
|
BLAKE2b-256 | e5728d5d3687d3f958c409cdb36f4cd62669b780874bc2248223ab312978d6ca |