diracx-cli 0.0.1a19__tar.gz → 0.0.1a20__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/PKG-INFO +1 -1
- {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/src/diracx/cli/__init__.py +25 -3
- {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/src/diracx_cli.egg-info/PKG-INFO +1 -1
- {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/README.md +0 -0
- {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/pyproject.toml +0 -0
- {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/setup.cfg +0 -0
- {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/src/diracx/cli/__main__.py +0 -0
- {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/src/diracx/cli/config.py +0 -0
- {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/src/diracx/cli/internal/__init__.py +0 -0
- {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/src/diracx/cli/internal/legacy.py +0 -0
- {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/src/diracx/cli/jobs.py +0 -0
- {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/src/diracx/cli/py.typed +0 -0
- {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/src/diracx/cli/utils.py +0 -0
- {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/src/diracx_cli.egg-info/SOURCES.txt +0 -0
- {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/src/diracx_cli.egg-info/dependency_links.txt +0 -0
- {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/src/diracx_cli.egg-info/entry_points.txt +0 -0
- {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/src/diracx_cli.egg-info/requires.txt +0 -0
- {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/src/diracx_cli.egg-info/top_level.txt +0 -0
- {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/tests/legacy/cs_sync/integration_test.cfg +0 -0
- {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/tests/legacy/cs_sync/integration_test.yaml +0 -0
- {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/tests/legacy/cs_sync/integration_test_buggy.cfg +0 -0
- {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/tests/legacy/cs_sync/integration_test_secret.cfg +0 -0
- {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/tests/legacy/cs_sync/test_cssync.py +0 -0
- {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/tests/legacy/test_legacy.py +0 -0
- {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/tests/test_internal.py +0 -0
- {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/tests/test_jobs.py +0 -0
- {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/tests/test_login.py +0 -0
|
@@ -38,12 +38,34 @@ def vo_callback(vo: str | None) -> str:
|
|
|
38
38
|
|
|
39
39
|
@app.async_command()
|
|
40
40
|
async def login(
|
|
41
|
-
vo: Annotated[
|
|
42
|
-
|
|
41
|
+
vo: Annotated[
|
|
42
|
+
Optional[str],
|
|
43
|
+
typer.Argument(callback=vo_callback, help="Virtual Organization name"),
|
|
44
|
+
] = None,
|
|
45
|
+
group: Optional[str] = typer.Option(
|
|
46
|
+
None,
|
|
47
|
+
help="Group name within the VO. If not provided, the default group for the VO will be used.",
|
|
48
|
+
),
|
|
43
49
|
property: Optional[list[str]] = typer.Option(
|
|
44
|
-
None,
|
|
50
|
+
None,
|
|
51
|
+
help=(
|
|
52
|
+
"List of properties to add to the default properties of the group. "
|
|
53
|
+
"If not provided, default properties of the group will be used."
|
|
54
|
+
),
|
|
45
55
|
),
|
|
46
56
|
):
|
|
57
|
+
"""Login to the DIRAC system using the device flow.
|
|
58
|
+
|
|
59
|
+
- If only VO is provided: Uses the default group and its properties for the VO.
|
|
60
|
+
|
|
61
|
+
- If VO and group are provided: Uses the specified group and its properties for the VO.
|
|
62
|
+
|
|
63
|
+
- If VO and properties are provided: Uses the default group and combines its properties with the
|
|
64
|
+
provided properties.
|
|
65
|
+
|
|
66
|
+
- If VO, group, and properties are provided: Uses the specified group and combines its properties with the
|
|
67
|
+
provided properties.
|
|
68
|
+
"""
|
|
47
69
|
scopes = [f"vo:{vo}"]
|
|
48
70
|
if group:
|
|
49
71
|
scopes.append(f"group:{group}")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/tests/legacy/cs_sync/integration_test_secret.cfg
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|