Skip to content
This repository was archived by the owner on Jun 2, 2026. It is now read-only.

Commit ab79e33

Browse files
committed
x
1 parent 17cdfb7 commit ab79e33

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,22 +76,22 @@ jobs:
7676
Packages uploaded to ${{ inputs.repository }}
7777
\`\`\`
7878
pip install${INDEX} defectdojo-api-generated==${{ inputs.version }}
79-
pip install${INDEX} defectdojo-api-generated-cli==${{ inputs.version }}
79+
pip install${INDEX} defectdojo-cli==${{ inputs.version }}
8080
\`\`\`
8181
EOF
8282
if [ "${{ inputs.repository }}" != "pypi" ]; then
8383
cat <<EOF >> ${GITHUB_STEP_SUMMARY}
8484
Run with \`uvx\`
8585
\`\`\`
8686
uvx --with 'defectdojo-api-generated @ https://test-files.pythonhosted.org/packages/source/d/defectdojo-api-generated/defectdojo_api_generated-${{ inputs.version }}.tar.gz' \\
87-
'defectdojo-api-generated-cli @ https://test-files.pythonhosted.org/packages/source/d/defectdojo-api-generated-cli/defectdojo_api_generated_cli-${{ inputs.version }}.tar.gz'
87+
'defectdojo-cli @ https://test-files.pythonhosted.org/packages/source/d/defectdojo-cli/defectdojo_cli-${{ inputs.version }}.tar.gz'
8888
\`\`\`
8989
EOF
9090
else
9191
cat <<EOF >> ${GITHUB_STEP_SUMMARY}
9292
Run with \`uvx\`
9393
\`\`\`
94-
uvx defectdojo-api-generated-cli==${{ inputs.version }}
94+
uvx defectdojo-cli==${{ inputs.version }}
9595
\`\`\`
9696
EOF
9797
fi

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ Multiple changes done on top of default openapi-generator:
1616
* Remove most of pydantic/schema validations due to inconsistencies with actual database schema/requirements (tracked in https://github.com/fopina/defectdojo-api-generated/issues/39)
1717
* *Iterator* methods for every *list* API method to handle pagination automatically
1818
* A nice CLI exposing all the API methods <3
19-
* published as a separate package, to keep library-only installs free of console-script conflicts
19+
* published as `defectdojo-cli`, a separate package to keep library-only installs free of console-script conflicts
2020

2121
## Example
2222

2323
### Library
2424

2525
```
26-
pip install defectojo-api-generated
26+
pip install defectdojo-api-generated
2727
```
2828

2929
<!-- example-id: example.py -->
@@ -49,7 +49,7 @@ pip install defectojo-api-generated
4949
> [uv](https://docs.astral.sh/uv/) recommended or [pipx](https://github.com/pypa/pipx)
5050
5151
```
52-
uv tool install defectdojo-api-generated-cli
52+
uv tool install defectdojo-cli
5353
```
5454

5555
```
@@ -69,7 +69,7 @@ Commands:
6969
You can also skip tool install and just run it with:
7070

7171
```
72-
$ uvx defectdojo-api-generated-cli
72+
$ uvx defectdojo-cli
7373
Usage: dojo [OPTIONS] COMMAND [ARGS]...
7474
...
7575
```

docs/cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This page provides documentation for the command line tool `dojo`.
77
> [uv](https://docs.astral.sh/uv/) recommended or [pipx](https://github.com/pypa/pipx)
88
99
```
10-
uv tool install 'defectojo-api-generated[cli]'
10+
uv tool install defectdojo-cli
1111
```
1212

1313
::: mkdocs-click

packages/cli/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dependencies = [
1616

1717
[project.scripts]
1818
dojo = "defectdojo_api_generated.cli.__main__:main"
19-
defectdojo-api-generated-cli = "defectdojo_api_generated.cli.__main__:main"
19+
defectdojo-cli = "defectdojo_api_generated.cli.__main__:main"
2020

2121
[project.urls]
2222
Homepage = "https://github.com/fopina/defectdojo-api-generated"

tests/unit/test_packaging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def test_cli_distribution_points_console_scripts_to_library_entrypoint(self):
2424
pyproject['project']['scripts'],
2525
{
2626
'dojo': 'defectdojo_api_generated.cli.__main__:main',
27-
'defectdojo-api-generated-cli': 'defectdojo_api_generated.cli.__main__:main',
27+
'defectdojo-cli': 'defectdojo_api_generated.cli.__main__:main',
2828
},
2929
)
3030

0 commit comments

Comments
 (0)