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.
Files changed (27) hide show
  1. {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/PKG-INFO +1 -1
  2. {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/src/diracx/cli/__init__.py +25 -3
  3. {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/src/diracx_cli.egg-info/PKG-INFO +1 -1
  4. {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/README.md +0 -0
  5. {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/pyproject.toml +0 -0
  6. {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/setup.cfg +0 -0
  7. {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/src/diracx/cli/__main__.py +0 -0
  8. {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/src/diracx/cli/config.py +0 -0
  9. {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/src/diracx/cli/internal/__init__.py +0 -0
  10. {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/src/diracx/cli/internal/legacy.py +0 -0
  11. {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/src/diracx/cli/jobs.py +0 -0
  12. {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/src/diracx/cli/py.typed +0 -0
  13. {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/src/diracx/cli/utils.py +0 -0
  14. {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/src/diracx_cli.egg-info/SOURCES.txt +0 -0
  15. {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/src/diracx_cli.egg-info/dependency_links.txt +0 -0
  16. {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/src/diracx_cli.egg-info/entry_points.txt +0 -0
  17. {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/src/diracx_cli.egg-info/requires.txt +0 -0
  18. {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/src/diracx_cli.egg-info/top_level.txt +0 -0
  19. {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/tests/legacy/cs_sync/integration_test.cfg +0 -0
  20. {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/tests/legacy/cs_sync/integration_test.yaml +0 -0
  21. {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/tests/legacy/cs_sync/integration_test_buggy.cfg +0 -0
  22. {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/tests/legacy/cs_sync/integration_test_secret.cfg +0 -0
  23. {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/tests/legacy/cs_sync/test_cssync.py +0 -0
  24. {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/tests/legacy/test_legacy.py +0 -0
  25. {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/tests/test_internal.py +0 -0
  26. {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/tests/test_jobs.py +0 -0
  27. {diracx_cli-0.0.1a19 → diracx_cli-0.0.1a20}/tests/test_login.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: diracx-cli
3
- Version: 0.0.1a19
3
+ Version: 0.0.1a20
4
4
  Summary: TODO
5
5
  License: GPL-3.0-only
6
6
  Classifier: Intended Audience :: Science/Research
@@ -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[Optional[str], typer.Argument(callback=vo_callback)] = None,
42
- group: Optional[str] = None,
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, help="Override the default(s) with one or more properties"
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}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: diracx-cli
3
- Version: 0.0.1a19
3
+ Version: 0.0.1a20
4
4
  Summary: TODO
5
5
  License: GPL-3.0-only
6
6
  Classifier: Intended Audience :: Science/Research
File without changes
File without changes