Skip to main content

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

https://github.com/Pawamoy/shellman/wiki

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


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.2.0.tar.gz (25.9 kB view details)

Uploaded Source

Built Distributions

shellman-0.2.0-py3.5.egg (36.2 kB view details)

Uploaded Source

shellman-0.2.0-py2.py3-none-any.whl (17.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file shellman-0.2.0.tar.gz.

File metadata

  • Download URL: shellman-0.2.0.tar.gz
  • Upload date:
  • Size: 25.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for shellman-0.2.0.tar.gz
Algorithm Hash digest
SHA256 7d04faac5882224115836fb7233874ed353b78dd863dd75f6b9053e93fa15b27
MD5 95f4522a259a32a6939c4796ef2e2d6f
BLAKE2b-256 817da218ae71494b8cb2766f961173fadd72448992bbc11925fcb3d68117e519

See more details on using hashes here.

File details

Details for the file shellman-0.2.0-py3.5.egg.

File metadata

  • Download URL: shellman-0.2.0-py3.5.egg
  • Upload date:
  • Size: 36.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for shellman-0.2.0-py3.5.egg
Algorithm Hash digest
SHA256 b71f7441934e5494aeed2c056762adb6f198d21fcde1ecb51de96103aad54d0b
MD5 648c2c78cd7440f1ddf925ba3f1d6116
BLAKE2b-256 6c98d09db410c86bf65ec11248f851f00ff6f7d806d96b8bf58ab9a116feaf92

See more details on using hashes here.

File details

Details for the file shellman-0.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for shellman-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 cf06887584f78dcb53f7edb04bf56b0edc5f6bc09182a0b56ba9e279a96fc7af
MD5 ab0cdf7f9b22e93af49295a6ccdd9409
BLAKE2b-256 1285cd2c355f1d00076b7ead43114de81413f6954b9725606c555cd9191ba190

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page