Skip to main content

Write doc in your shell scripts.

Project description

<p align="center">
<img src="logo.png">

<h1 align="center">Shell Script Documentation</h1>

<p align="center">Write documentation in comments and render it with templates.</p>

<!-- start-badges -->
<p align="center">
<a href="">
<img alt="pipeline status" src="" />
<a href="">
<img alt="coverage report" src="" />
<a href="">
<img alt="pypi version" src="" />
<a href="">
<img alt="python wheel" src="" />
<a href="">
<img alt="gitter chat" src="" />
<!-- end-badges -->

`shellman` can generate man pages, wiki pages and help text
using documentation written in shell scripts comments.

For example:


## \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 "$0"; exit 0 ;;

## \usage demo [-h]
main "$@"

Output when calling ``./demo -h``:

Usage: demo [-h]

This script actually does nothing.

-h, --help Print this help and exit.

You can see more examples and all the documentation in the wiki!

- [GitLab wiki](
- [GitHub wiki](

<h2 align="center">Demo</h2>
<p align="center"><img src="demo.svg"></p>

In the demo above we saw the three builtin templates:
helptext, manpage and wikipage.

You can use your own templates
by specifying them with the ``--template path:my/template`` syntax.

You can also write a plugin: see [the wiki page on GitLab] or [on GitHub].

[the wiki page on GitLab]:
[on GitHub]:

## Installation
`shellman` is written in Python, so you must install it with `pip`:

pip install shellman

## Some projects using shellman

- [shellm]( —
A collection of scripts and libraries
built on its [core inclusion-system](,
all installable with [basher](

## License
Software licensed under [ISC] license.


Project details

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.3.0.tar.gz (26.9 kB view hashes)

Uploaded source

Built Distribution

shellman-0.3.0-py2.py3-none-any.whl (21.0 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page