Just pip install shelldoc
usage: shelldoc [-h] -f FILES [FILES ...] [-d DEST]
Generate documentation from shell script
optional arguments:
-h, --help show this help message and exit
-f FILES [FILES ...], --files FILES [FILES ...]
Files to generate documentation from
-d DEST, --dest DEST Directory to generate documentation in. ./docs by default
This documentation generation tool is based on Google Shell Style Guide
For example :
#######################################
# Get configuration directory.
# Globals:
# SOMEDIR
# Arguments:
# None
# Outputs:
# Writes location to stdout
# See:
# https://stackoverflow.com/questions/59895/getting-the-source-directory-of-a-bash-script-from-within
# del_thing
#######################################
The following parameters are available :
- Globals
- Arguments
- Outputs
- Returns
- See
- Raises
Also, the TODO
are parsed.