Skip to content
Snippets Groups Projects
Commit 04375ab5 authored by David Douard's avatar David Douard
Browse files

Adapt cli declaration entrypoint to swh.core 0.3

parent 4749ea13
No related branches found
No related tags found
No related merge requests found
# Add here internal Software Heritage dependencies, one per line.
swh.core >= 0.3
swh.model
......@@ -69,6 +69,6 @@ setup(
},
entry_points="""
[swh.cli.subcommands]
auth=swh.web.client.cli:auth
auth=swh.web.client.cli
""",
)
......@@ -7,11 +7,12 @@
# control
import click
from click.core import Context
from swh.core.cli import swh as swh_cli_group
CONTEXT_SETTINGS = dict(help_option_names=["-h", "--help"])
@click.group(name="auth", context_settings=CONTEXT_SETTINGS)
@swh_cli_group.group(name="auth", context_settings=CONTEXT_SETTINGS)
@click.option(
"--oidc-server-url",
"oidc_server_url",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment