Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/essentialkaos/shdoc
Tool for viewing and exporting docs for shell scripts
https://github.com/essentialkaos/shdoc
bash documentation tool utility viewer
Last synced: about 1 month ago
JSON representation
Tool for viewing and exporting docs for shell scripts
- Host: GitHub
- URL: https://github.com/essentialkaos/shdoc
- Owner: essentialkaos
- License: apache-2.0
- Created: 2015-12-01T22:49:14.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-11-13T09:07:31.000Z (about 2 months ago)
- Last Synced: 2024-11-13T10:20:04.184Z (about 2 months ago)
- Topics: bash, documentation, tool, utility, viewer
- Language: Go
- Homepage: https://kaos.sh/shdoc
- Size: 333 KB
- Stars: 12
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
Usage Demo • Installation • Usage • Test & Coverage Status • Contributing • License
`shdoc` is a tool for viewing and exporting documentation for shell scripts.
### Usage Demo
[![demo](https://gh.kaos.st/shdoc-020.gif)](#usage-demo)
### Installation
#### From source
Make sure you have a working Go 1.21+ workspace ([instructions](https://go.dev/doc/install)), then:
```bash
go install github.com/essentialkaos/shdoc@latest
```#### Prebuilt binaries
You can download prebuilt binaries for Linux and macOS from [EK Apps Repository](https://apps.kaos.st/shdoc/latest).
To install the latest prebuilt version of bibop, do:
```bash
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
### Test & Coverage Status
| Branch | CI | Coveralls |
|--------|----------|-----------|
| `master` | [![CI](https://kaos.sh/w/shdoc/ci.svg?branch=master)](https://kaos.sh/w/shdoc/ci?query=branch:master) | [![Coverage Status](https://kaos.sh/c/shdoc.svg?branch=master)](https://kaos.sh/c/shdoc?branch=master) |
| `develop` | [![CI](https://kaos.sh/w/shdoc/ci.svg?branch=develop)](https://kaos.sh/w/shdoc/ci?query=branch:develop) | [![Coverage Status](https://kaos.sh/c/shdoc.svg?branch=develop)](https://kaos.sh/c/shdoc?branch=develop) |### Contributing
Before contributing to this project please read our [Contributing Guidelines](https://github.com/essentialkaos/contributing-guidelines#contributing-guidelines).
### License
[Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0)