README
¶
Usage Demo • Installation • Usage • Test & Coverage Status • Contributing • License
shdoc
is a tool for viewing and exporting documentation for shell scripts.
Usage Demo
Installation
From source
Make sure you have a working Go 1.16+ workspace (instructions), then:
go get github.com/essentialkaos/shdoc
If you want to update shdoc
to latest stable release, do:
go get -u github.com/essentialkaos/shdoc
Prebuilt binaries
You can download prebuilt binaries for Linux and macOS from EK Apps Repository.
To install the latest prebuilt version of bibop, do:
bash <(curl -fsSL https://apps.kaos.st/get) shdoc
Command-line completion
You can generate completion for bash
, zsh
or fish
shell.
Bash:
sudo shdoc --completion=bash 1> /etc/bash_completion.d/shdoc
ZSH:
sudo shdoc --completion=zsh 1> /usr/share/zsh/site-functions/shdoc
Fish:
sudo shdoc --completion=fish 1> /usr/share/fish/vendor_completions.d/shdoc.fish
Usage
Usage: shdoc {options} file
Options
--output, -o file Path to output file
--template, -t name Name of template
--name, -n name Overwrite default name
--no-color, -nc Disable colors in output
--help, -h Show this help message
--version, -v Show version
Examples:
shdoc script.sh
Parse shell script and show docs in console
shdoc script.sh -t markdown -o my_script.md
Parse shell script and save docs using given export template
shdoc script.sh someEntity
Parse shell script and show docs for some constant, variable or method
Test & Coverage Status
Branch | CI | Coveralls |
---|---|---|
master |
||
develop |
Contributing
Before contributing to this project please read our Contributing Guidelines.
License
Documentation
¶
There is no documentation for this package.
Click to show internal directories.
Click to hide internal directories.