youtrack-cli 0.3.1__tar.gz → 0.3.2__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.
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/.claude/settings.local.json +2 -1
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/PKG-INFO +1 -1
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/justfile +2 -2
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/pyproject.toml +1 -1
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/tests/test_admin.py +1 -1
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/uv.lock +1 -1
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/youtrack_cli/admin.py +7 -6
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/.github/dependabot.yml +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/.github/workflows/ci.yml +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/.github/workflows/release.yml +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/.gitignore +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/.pre-commit-config.yaml +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/.readthedocs.yaml +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/CLAUDE.md +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/PUBLISHING.md +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/README.md +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/docs/Makefile +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/docs/api/index.rst +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/docs/changelog.rst +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/docs/command-aliases.rst +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/docs/commands/admin.rst +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/docs/commands/articles.rst +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/docs/commands/auth.rst +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/docs/commands/boards.rst +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/docs/commands/config.rst +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/docs/commands/index.rst +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/docs/commands/issues.rst +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/docs/commands/projects.rst +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/docs/commands/reports.rst +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/docs/commands/time.rst +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/docs/commands/users.rst +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/docs/conf.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/docs/configuration.rst +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/docs/development.rst +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/docs/index.rst +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/docs/installation.rst +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/docs/learning-path.rst +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/docs/logging.rst +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/docs/performance.md +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/docs/progress-indicators.md +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/docs/quickstart.rst +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/docs/requirements.txt +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/docs/security.rst +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/docs/troubleshooting.rst +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/docs/workflows.rst +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/docs/youtrack-concepts.rst +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/package-lock.json +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/package.json +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/tests/__init__.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/tests/conftest.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/tests/test_articles.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/tests/test_auth.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/tests/test_boards.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/tests/test_config.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/tests/test_issues.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/tests/test_logging.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/tests/test_main.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/tests/test_projects.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/tests/test_reports.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/tests/test_security.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/tests/test_time.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/tests/test_users.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/tox.ini +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/youtrack_cli/__init__.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/youtrack_cli/articles.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/youtrack_cli/auth.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/youtrack_cli/boards.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/youtrack_cli/cache.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/youtrack_cli/cli_utils/__init__.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/youtrack_cli/cli_utils/aliases.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/youtrack_cli/client.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/youtrack_cli/commands/__init__.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/youtrack_cli/commands/articles.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/youtrack_cli/commands/boards.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/youtrack_cli/commands/common.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/youtrack_cli/commands/issues.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/youtrack_cli/commands/projects.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/youtrack_cli/commands/time_tracking.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/youtrack_cli/commands/users.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/youtrack_cli/common.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/youtrack_cli/config.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/youtrack_cli/exceptions.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/youtrack_cli/issues.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/youtrack_cli/logging.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/youtrack_cli/main.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/youtrack_cli/performance.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/youtrack_cli/progress.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/youtrack_cli/projects.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/youtrack_cli/py.typed +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/youtrack_cli/reports.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/youtrack_cli/security.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/youtrack_cli/time.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/youtrack_cli/users.py +0 -0
- {youtrack_cli-0.3.1 → youtrack_cli-0.3.2}/youtrack_cli/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: youtrack-cli
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Summary: YouTrack CLI - Command line interface for JetBrains YouTrack issue tracking system
|
|
5
5
|
Project-URL: Homepage, https://github.com/ryan-murphy/yt-cli
|
|
6
6
|
Project-URL: Documentation, https://yt-cli.readthedocs.io/
|
|
@@ -52,8 +52,8 @@ format-check:
|
|
|
52
52
|
[group('quality')]
|
|
53
53
|
typecheck:
|
|
54
54
|
#!/usr/bin/env bash
|
|
55
|
-
echo "Running
|
|
56
|
-
uv run
|
|
55
|
+
echo "Running ty type checker..."
|
|
56
|
+
uv run ty youtrack_cli
|
|
57
57
|
echo "✅ Type checking complete"
|
|
58
58
|
|
|
59
59
|
[group('quality')]
|
|
@@ -209,7 +209,7 @@ class TestAdminManager:
|
|
|
209
209
|
|
|
210
210
|
with patch("httpx.AsyncClient") as mock_client:
|
|
211
211
|
mock_response = Mock()
|
|
212
|
-
mock_response.json.return_value = mock_groups
|
|
212
|
+
mock_response.json.return_value = {"usergroups": mock_groups}
|
|
213
213
|
mock_response.raise_for_status.return_value = None
|
|
214
214
|
|
|
215
215
|
mock_client.return_value.__aenter__.return_value.get.return_value = mock_response
|
|
@@ -151,7 +151,7 @@ class AdminManager:
|
|
|
151
151
|
async with httpx.AsyncClient() as client:
|
|
152
152
|
try:
|
|
153
153
|
response = await client.get(
|
|
154
|
-
f"{credentials.base_url.rstrip('/')}/api/admin/license",
|
|
154
|
+
f"{credentials.base_url.rstrip('/')}/api/admin/globalSettings/license",
|
|
155
155
|
headers=headers,
|
|
156
156
|
timeout=10.0,
|
|
157
157
|
)
|
|
@@ -192,7 +192,7 @@ class AdminManager:
|
|
|
192
192
|
async with httpx.AsyncClient() as client:
|
|
193
193
|
try:
|
|
194
194
|
response = await client.get(
|
|
195
|
-
f"{credentials.base_url.rstrip('/')}/api/admin/license/usage",
|
|
195
|
+
f"{credentials.base_url.rstrip('/')}/api/admin/globalSettings/license/usage",
|
|
196
196
|
headers=headers,
|
|
197
197
|
timeout=10.0,
|
|
198
198
|
)
|
|
@@ -234,7 +234,7 @@ class AdminManager:
|
|
|
234
234
|
async with httpx.AsyncClient() as client:
|
|
235
235
|
try:
|
|
236
236
|
response = await client.get(
|
|
237
|
-
f"{credentials.base_url.rstrip('/')}/api/admin/
|
|
237
|
+
f"{credentials.base_url.rstrip('/')}/api/admin/globalSettings/systemSettings",
|
|
238
238
|
headers=headers,
|
|
239
239
|
timeout=10.0,
|
|
240
240
|
)
|
|
@@ -327,14 +327,15 @@ class AdminManager:
|
|
|
327
327
|
async with httpx.AsyncClient() as client:
|
|
328
328
|
try:
|
|
329
329
|
response = await client.get(
|
|
330
|
-
f"{credentials.base_url.rstrip('/')}/api/
|
|
330
|
+
f"{credentials.base_url.rstrip('/')}/api/rest/usergroups",
|
|
331
331
|
headers=headers,
|
|
332
332
|
params=params,
|
|
333
333
|
timeout=10.0,
|
|
334
334
|
)
|
|
335
335
|
response.raise_for_status()
|
|
336
336
|
|
|
337
|
-
|
|
337
|
+
groups_response = response.json()
|
|
338
|
+
groups = groups_response.get("usergroups", [])
|
|
338
339
|
return {"status": "success", "data": groups}
|
|
339
340
|
|
|
340
341
|
except httpx.HTTPError as e:
|
|
@@ -378,7 +379,7 @@ class AdminManager:
|
|
|
378
379
|
async with httpx.AsyncClient() as client:
|
|
379
380
|
try:
|
|
380
381
|
response = await client.post(
|
|
381
|
-
f"{credentials.base_url.rstrip('/')}/api/
|
|
382
|
+
f"{credentials.base_url.rstrip('/')}/api/rest/usergroups",
|
|
382
383
|
headers=headers,
|
|
383
384
|
json=group_data,
|
|
384
385
|
params={"fields": "id,name,description"},
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|