Skip to content
Snippets Groups Projects
Verified Commit 3b8afeb4 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

Adapt app_manager subcommand from list to list-dependent-apps

Refs. swh/infra/sysadm-environment#4724
parent 70bce568
No related merge requests found
......@@ -167,7 +167,7 @@ def list_apps(apps_dir: Path) -> Iterator[str]:
yield req_file.parent.stem
@app.command("list")
@app.command("list-dependent-apps")
@click.option(
"-a", "--application", "application", default=None, help="Application name"
)
......@@ -175,11 +175,11 @@ def list_apps(apps_dir: Path) -> Iterator[str]:
"-v", "--version", "version", default=None, help="Version of the application"
)
@click.pass_context
def list(ctx, application: str, version: str) -> None:
def list_dependent_apps(ctx, application: str, version: str) -> None:
"""With no parameters, list all known applications with a requirements.txt. With
application and version, list known applications (with requirements.txt) whose
constraint does not match exactly application & version. Applications without
constraint of `application` are ignored.
constraint of `application` are ignored.
"""
absolute_apps_dirpath = ctx.obj["apps_dir"]
......
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