xgic-gitlab-cli 0.1.2__tar.gz → 0.1.3__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.
- {xgic_gitlab_cli-0.1.2 → xgic_gitlab_cli-0.1.3}/PKG-INFO +3 -3
- {xgic_gitlab_cli-0.1.2 → xgic_gitlab_cli-0.1.3}/README.md +2 -2
- {xgic_gitlab_cli-0.1.2 → xgic_gitlab_cli-0.1.3}/pyproject.toml +1 -1
- {xgic_gitlab_cli-0.1.2 → xgic_gitlab_cli-0.1.3}/src/xgic/cli/gitlab/config.py +14 -0
- {xgic_gitlab_cli-0.1.2 → xgic_gitlab_cli-0.1.3}/.gitignore +0 -0
- {xgic_gitlab_cli-0.1.2 → xgic_gitlab_cli-0.1.3}/LICENSE +0 -0
- {xgic_gitlab_cli-0.1.2 → xgic_gitlab_cli-0.1.3}/NOTICE +0 -0
- {xgic_gitlab_cli-0.1.2 → xgic_gitlab_cli-0.1.3}/src/xgic/cli/gitlab/__init__.py +0 -0
- {xgic_gitlab_cli-0.1.2 → xgic_gitlab_cli-0.1.3}/src/xgic/cli/gitlab/archive.py +0 -0
- {xgic_gitlab_cli-0.1.2 → xgic_gitlab_cli-0.1.3}/src/xgic/cli/gitlab/commands/__init__.py +0 -0
- {xgic_gitlab_cli-0.1.2 → xgic_gitlab_cli-0.1.3}/src/xgic/cli/gitlab/commands/backup.py +0 -0
- {xgic_gitlab_cli-0.1.2 → xgic_gitlab_cli-0.1.3}/src/xgic/cli/gitlab/commands/health.py +0 -0
- {xgic_gitlab_cli-0.1.2 → xgic_gitlab_cli-0.1.3}/src/xgic/cli/gitlab/commands/info.py +0 -0
- {xgic_gitlab_cli-0.1.2 → xgic_gitlab_cli-0.1.3}/src/xgic/cli/gitlab/commands/restore.py +0 -0
- {xgic_gitlab_cli-0.1.2 → xgic_gitlab_cli-0.1.3}/src/xgic/cli/gitlab/compose.py +0 -0
- {xgic_gitlab_cli-0.1.2 → xgic_gitlab_cli-0.1.3}/src/xgic/cli/gitlab/manifest.py +0 -0
- {xgic_gitlab_cli-0.1.2 → xgic_gitlab_cli-0.1.3}/src/xgic/cli/gitlab/plugin.py +0 -0
- {xgic_gitlab_cli-0.1.2 → xgic_gitlab_cli-0.1.3}/src/xgic/cli/gitlab/schemas/backup-manifest.schema.json +0 -0
- {xgic_gitlab_cli-0.1.2 → xgic_gitlab_cli-0.1.3}/src/xgic/cli/gitlab/schemas/gitlab-cli.schema.json +0 -0
- {xgic_gitlab_cli-0.1.2 → xgic_gitlab_cli-0.1.3}/src/xgic/cli/gitlab/settings.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: xgic-gitlab-cli
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.3
|
|
4
4
|
Summary: XGIC CLI GitLab module - GitLab ops commands and helpers (xgic.cli.gitlab).
|
|
5
5
|
Project-URL: Homepage, https://github.com/xgic/gitlab-cli
|
|
6
6
|
Project-URL: Repository, https://github.com/xgic/gitlab-cli
|
|
@@ -190,8 +190,8 @@ See [docs/backup.md](docs/backup.md) and [docs/configuration.md](docs/configurat
|
|
|
190
190
|
|
|
191
191
|
## Status
|
|
192
192
|
|
|
193
|
-
**0.1.
|
|
194
|
-
TestPyPI `0.1.
|
|
193
|
+
**0.1.3.** `xgic gitlab backup` reads the flags the core CLI passes in.
|
|
194
|
+
TestPyPI `0.1.3rc1` passed smoke. PyPI `0.1.2` ignores those flags.
|
|
195
195
|
|
|
196
196
|
---
|
|
197
197
|
|
|
@@ -153,8 +153,8 @@ See [docs/backup.md](docs/backup.md) and [docs/configuration.md](docs/configurat
|
|
|
153
153
|
|
|
154
154
|
## Status
|
|
155
155
|
|
|
156
|
-
**0.1.
|
|
157
|
-
TestPyPI `0.1.
|
|
156
|
+
**0.1.3.** `xgic gitlab backup` reads the flags the core CLI passes in.
|
|
157
|
+
TestPyPI `0.1.3rc1` passed smoke. PyPI `0.1.2` ignores those flags.
|
|
158
158
|
|
|
159
159
|
---
|
|
160
160
|
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "xgic-gitlab-cli"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.3"
|
|
8
8
|
description = "XGIC CLI GitLab module - GitLab ops commands and helpers (xgic.cli.gitlab)."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = { text = "Apache-2.0" }
|
|
@@ -71,6 +71,19 @@ def _first(*values: str | None) -> str | None:
|
|
|
71
71
|
return None
|
|
72
72
|
|
|
73
73
|
|
|
74
|
+
def _namespace(args: argparse.Namespace) -> argparse.Namespace:
|
|
75
|
+
"""Return the argparse namespace.
|
|
76
|
+
|
|
77
|
+
The core CLI calls handlers with ``CommandContext``, whose ``args``
|
|
78
|
+
attribute holds the parsed flags. A handler that reads the context
|
|
79
|
+
object itself sees none of those flags.
|
|
80
|
+
"""
|
|
81
|
+
inner = getattr(args, "args", None)
|
|
82
|
+
if isinstance(inner, argparse.Namespace):
|
|
83
|
+
return inner
|
|
84
|
+
return args
|
|
85
|
+
|
|
86
|
+
|
|
74
87
|
def resolve_config(args: argparse.Namespace) -> GitLabOpsConfig:
|
|
75
88
|
"""Build config from flags, environment, an optional JSON file, and defaults.
|
|
76
89
|
|
|
@@ -81,6 +94,7 @@ def resolve_config(args: argparse.Namespace) -> GitLabOpsConfig:
|
|
|
81
94
|
from xgic.cli.gitlab.manifest import parse_allow_missing
|
|
82
95
|
from xgic.cli.gitlab.settings import load_cli_config
|
|
83
96
|
|
|
97
|
+
args = _namespace(args)
|
|
84
98
|
explicit = getattr(args, "config", None)
|
|
85
99
|
loaded = load_cli_config(Path(str(explicit)) if explicit else default_config_path())
|
|
86
100
|
allow_value = getattr(args, "allow_missing", None)
|
|
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
|
{xgic_gitlab_cli-0.1.2 → xgic_gitlab_cli-0.1.3}/src/xgic/cli/gitlab/schemas/gitlab-cli.schema.json
RENAMED
|
File without changes
|
|
File without changes
|