Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        


GoReportCard
codebeat badge
Codacy badge
Coverage Status


GitHub Actions CI Status
GitHub Actions CodeQL Status

Usage DemoInstallationUsageTest & Coverage StatusContributingLicense


`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)