clickusagemd/README.md

51 lines
1.4 KiB
Markdown
Raw Permalink Normal View History

2022-07-15 13:53:08 +02:00
# Click Usage Markdown Generator
2022-07-20 10:12:56 +02:00
## Installation
Add `clickusagemd` as development dependency to your Poetry project.
```sh
2023-08-15 12:16:02 +02:00
poetry add -D git+https://git@git.goatpr0n.de/public/clickusagemd.git
2022-07-20 10:12:56 +02:00
```
By adding a revision tag you can stay on a — at least for you — working version, instead of working with the latest and
possible broken commit.
2023-08-15 12:16:02 +02:00
The latest recommended revision is: **0.8.2**.
2022-07-20 10:12:56 +02:00
**To install:**
```sh
2023-08-15 12:16:02 +02:00
poetry add -D git+https://git.goatpr0n.de/public/clickusagemd.git@0.8.2
2022-07-20 10:12:56 +02:00
```
After installing, register the *pre-push* hook.
The hook is installed by executing the command `poetry run clickusagemd install`.
If an previous, untagged version of the *pre-push* hook was installed you might need to manually delete the file `.git/hooks/pre-push` before installing.
Later versions of *clickusagemd* will detect its own *pre-hook* files and will install or update them.
## Updating
To update *clickusagemd* either run
```sh
poetry update clickusagemd
```
with , or to update all *Poetry* dependencies at once
```sh
poetry update
```
## Usage
See [USAGE.md](USAGE.md).
## Uninstall
2023-08-15 12:16:02 +02:00
2022-07-20 10:12:56 +02:00
*Clickusagemd* can be uninstalled by removing the *pre-push* hook with
```sh
poetry run clickusagemd uninstall
```
or by manually deleting the file `.git/hooks/pre-push`.
To completely remove the `clickusagemd` command use the *Poetry* package manager to remove the dependency.
```sh
poetry remove -D clickusagemd
```