#BashMan
BashMan — a documentation generator for bash functions. Prepare man pages based on coments in your code.
bashman [OPTIONS] [SOURCE_DIRECTORY]
`-t`, `--target` – DIR Target directory for documentation (default: docs)
`-i`, `--install` – Install documentation in /usr/share/man/man1
`-h`, `--help` – Display this help
`SOURCE_DIRECTORY` Directory with bash scripts (default: `.`)
$ bashman # Generate docs from current directory to ./docs
$ bashman -t /tmp/docs ./scripts # Generate docs from ./scripts to /tmp/docs
$ bashman -i ./scripts # Generate and install in systemDocumentation comments must be placed directly above the function:
#;
# # Function name
#
# Function description in markdown format
#
# ## Parameters
# - \$1: first parameter
# - \$2: second parameter
#
# ## Example
# \`\`\`bash
# my_function "test" "123"
# \`\`\`
#;
my_function() {
# function code
}