Go to file
renovate 0e7b8adba8 chore(deps): update dependency pre-commit to v3.3.1 (#8)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [pre-commit](https://github.com/pre-commit/pre-commit) | dev-dependencies | minor | `3.2.2` -> `3.3.1` |

---

### Release Notes

<details>
<summary>pre-commit/pre-commit</summary>

### [`v3.3.1`](https://github.com/pre-commit/pre-commit/blob/HEAD/CHANGELOG.md#&#8203;331---2023-05-02)

[Compare Source](https://github.com/pre-commit/pre-commit/compare/v3.3.0...v3.3.1)

\==================

##### Fixes

-   Work around `git` partial clone bug for `autoupdate` on windows.
    -   [#&#8203;2866](https://github.com/pre-commit/pre-commit/issues/2866) PR by [@&#8203;asottile](https://github.com/asottile).
    -   [#&#8203;2865](https://github.com/pre-commit/pre-commit/issues/2865) issue by [@&#8203;adehad](https://github.com/adehad).

### [`v3.3.0`](https://github.com/pre-commit/pre-commit/blob/HEAD/CHANGELOG.md#&#8203;330---2023-05-01)

[Compare Source](https://github.com/pre-commit/pre-commit/compare/v3.2.2...v3.3.0)

\==================

##### Features

-   Upgrade ruby-build.
    -   [#&#8203;2846](https://github.com/pre-commit/pre-commit/issues/2846) PR by [@&#8203;jalessio](https://github.com/jalessio).
-   Use blobless clone for faster autoupdate.
    -   [#&#8203;2859](https://github.com/pre-commit/pre-commit/issues/2859) PR by [@&#8203;asottile](https://github.com/asottile).
-   Add `-j` / `--jobs` argument to `autoupdate` for parallel execution.
    -   [#&#8203;2863](https://github.com/pre-commit/pre-commit/issues/2863) PR by [@&#8203;asottile](https://github.com/asottile).
    -   issue by [@&#8203;gaborbernat](https://github.com/gaborbernat).

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS42MS4wIiwidXBkYXRlZEluVmVyIjoiMzUuNjEuMCJ9-->

Co-authored-by: Renovate Bot <renovate@localhost.localdomain>
Co-authored-by: JayPiKay <jpk@noreply.localhost>
Reviewed-on: #8
Co-authored-by: renovate <renovate@noreply.localhost>
Co-committed-by: renovate <renovate@noreply.localhost>
2023-05-04 18:32:00 +02:00
doxy List sub services of a service (docker-compose.yml) 2023-04-20 14:56:55 +02:00
tests Preparing pre-commit setup 2023-01-10 15:45:35 +01:00
.gitignore Initial commit 2023-01-10 08:57:57 +01:00
.pre-commit-config.yaml Updated pre-commit dependencies 2023-04-20 14:57:16 +02:00
README.md Code formatting 2023-01-16 14:42:00 +01:00
config.example.yml Handle missing configuration file. 2023-01-12 08:43:44 +01:00
poetry.lock chore(deps): update dependency pre-commit to v3.3.1 (#8) 2023-05-04 18:32:00 +02:00
pyproject.toml fix(deps): update dependency semver to v3 (#6) 2023-04-28 09:01:11 +02:00
renovate.json Configure Renovate (#1) 2023-04-27 15:09:14 +02:00

README.md

Doxy

Installation

pipx install git+https://github.com/jaypikay/doxy.git

Shell completion

Service name completion

By enabling shell completion the service names are TAB-Completted when using the control command.

Configuration

Save the configuration file in ~/.config/doxy/config.yml:

root_directory: "/path/to/docker/services"
compose_executable: "/usr/bin/docker-compose"

If you use docker compose instead of docker-compose you can use a wrapper script for docker-compose

#!/bin/bash

/usr/bin/docker compose $@

exit 0

Usage

Usage: doxy [OPTIONS] COMMAND [ARGS]...

Options:
  -f, --format [fancy|simple]  output formatting  [default: fancy]
  --help  Show this message and exit.

Commands:
  control  run docker-compose commands
  edit     edit the compose file
  list     list available services
  update   pull the latest service images and restart

Examples

List available services

$ doxy list
Available Services
├── service-1
├── service-2
├── other-service
└── my-service-demo

When doxy -f simple is used the output is easier to process by pipes.

Start a service and detach

$ doxy control other-service up -d

Edit a service

$ doxy edit service-2

Bash

Alternative 1

Add this to ~/.bashrc:

eval "$(_DOXY_COMPLETE=bash_source doxy)"

Alternative 2

Save the script:

_DOXY_COMPLETE=bash_source doxy > ~/.doxy-complete.bash

Add this to ~/.bashrc:

. ~/.foo-bar-complete.bash

Zsh

Alternative 1

Add this to ~/.zshrc:

eval "$(_DOXY_COMPLETE=zsh_source doxy)"

Alternative 2

Save the script:

_DOXY_COMPLETE=zsh_source doxy > ~/.doxy-complete.zsh

Add this to ~/.zshrc:

. ~/.foo-bar-complete.zsh