Usage Demo • Installation • Usage • Test & Coverage Status • Contributing • License
shdoc is a tool for viewing and exporting documentation for shell scripts. The documentation format is described in the specification.
Make sure you have a working Go 1.25+ workspace (instructions), then:
go install github.com/essentialkaos/shdoc@latestYou can download prebuilt binaries for Linux and macOS from EK Apps Repository.
To install the latest prebuilt version of shdoc, do:
bash <(curl -fsSL https://apps.kaos.st/get) shdocSince version 0.11.0 you can update shdoc to the latest release using self-update feature:
shdoc --updateThis command will runs a self-update in interactive mode. If you want to run a quiet update (no output), use the following command:
shdoc --update=quietYou can generate completion for bash, zsh or fish shell.
Bash:
shdoc --completion=bash | sudo tee /etc/bash_completion.d/shdoc > /dev/nullZSH:
shdoc --completion=zsh | sudo tee /usr/share/zsh/site-functions/shdoc > /dev/nullFish:
shdoc --completion=fish | sudo tee /usr/share/fish/vendor_completions.d/shdoc.fish > /dev/null| Branch | CI | Coveralls |
|---|---|---|
master |
||
develop |
Before contributing to this project please read our Contributing Guidelines.
