vortex-cli 4.17.2__tar.gz → 4.17.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.
- {vortex_cli-4.17.2/vortex_cli.egg-info → vortex_cli-4.17.3}/PKG-INFO +1 -1
- {vortex_cli-4.17.2 → vortex_cli-4.17.3}/pyproject.toml +1 -1
- {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/commands/clean.py +7 -5
- {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/commands/clone.py +4 -3
- {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/commands/export.py +2 -2
- {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/main.py +1 -1
- {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/models.py +1 -1
- {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/spinner.py +1 -3
- {vortex_cli-4.17.2 → vortex_cli-4.17.3/vortex_cli.egg-info}/PKG-INFO +1 -1
- {vortex_cli-4.17.2 → vortex_cli-4.17.3}/LICENSE +0 -0
- {vortex_cli-4.17.2 → vortex_cli-4.17.3}/README.md +0 -0
- {vortex_cli-4.17.2 → vortex_cli-4.17.3}/setup.cfg +0 -0
- {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/__init__.py +0 -0
- {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/__main__.py +0 -0
- {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/cli.py +0 -0
- {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/colour.py +0 -0
- {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/commands/__init__.py +0 -0
- {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/commands/code.py +0 -0
- {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/commands/config.py +0 -0
- {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/commands/copy.py +0 -0
- {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/commands/db.py +0 -0
- {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/commands/delete.py +0 -0
- {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/commands/docs.py +0 -0
- {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/commands/execute.py +0 -0
- {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/commands/find.py +0 -0
- {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/commands/grep.py +0 -0
- {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/commands/list.py +0 -0
- {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/commands/log.py +0 -0
- {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/commands/new.py +0 -0
- {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/commands/watch.py +0 -0
- {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/constants.py +0 -0
- {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/docs/Blackbook.pdf +0 -0
- {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/lib/puakma-6.0.37.jar +0 -0
- {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/logging.py +0 -0
- {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/soap.py +0 -0
- {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/util.py +0 -0
- {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/workspace.py +0 -0
- {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex_cli.egg-info/SOURCES.txt +0 -0
- {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex_cli.egg-info/dependency_links.txt +0 -0
- {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex_cli.egg-info/entry_points.txt +0 -0
- {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex_cli.egg-info/requires.txt +0 -0
- {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex_cli.egg-info/top_level.txt +0 -0
|
@@ -9,12 +9,14 @@ logger = logging.getLogger("vortex")
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
def clean(workspace: Workspace) -> int:
|
|
12
|
-
|
|
13
|
-
if
|
|
12
|
+
cloned_apps = workspace.listapps()
|
|
13
|
+
if cloned_apps:
|
|
14
|
+
host_dirs = set(workspace.path / app.host for app in cloned_apps)
|
|
15
|
+
print(host_dirs)
|
|
14
16
|
with workspace.exclusive_lock():
|
|
15
|
-
for
|
|
16
|
-
shutil.rmtree(
|
|
17
|
-
logger.debug(f"Deleted directory '{
|
|
17
|
+
for host_dir in host_dirs:
|
|
18
|
+
shutil.rmtree(host_dir)
|
|
19
|
+
logger.debug(f"Deleted directory '{host_dir}'")
|
|
18
20
|
workspace.update_vscode_settings()
|
|
19
21
|
logger.info("Workspace cleaned")
|
|
20
22
|
return 0
|
|
@@ -188,7 +188,7 @@ async def _aclone_app(
|
|
|
188
188
|
async def _aclone_apps(
|
|
189
189
|
workspace: Workspace,
|
|
190
190
|
server: PuakmaServer,
|
|
191
|
-
app_ids:
|
|
191
|
+
app_ids: set[int],
|
|
192
192
|
get_resources: bool,
|
|
193
193
|
open_urls: bool,
|
|
194
194
|
) -> int:
|
|
@@ -233,10 +233,11 @@ def clone(
|
|
|
233
233
|
if reclone:
|
|
234
234
|
app_ids.extend(app.id for app in workspace.listapps(server))
|
|
235
235
|
|
|
236
|
+
unique_app_ids = set(app_ids)
|
|
236
237
|
with (
|
|
237
238
|
workspace.exclusive_lock(),
|
|
238
|
-
Spinner(f"Cloning {len(
|
|
239
|
+
Spinner(f"Cloning {len(unique_app_ids)} application(s)..."),
|
|
239
240
|
):
|
|
240
241
|
return asyncio.run(
|
|
241
|
-
_aclone_apps(workspace, server,
|
|
242
|
+
_aclone_apps(workspace, server, unique_app_ids, get_resources, open_urls)
|
|
242
243
|
)
|
|
@@ -21,7 +21,7 @@ def _save_bytes(data: bytes, output_path: Path) -> None:
|
|
|
21
21
|
|
|
22
22
|
async def _aexport(
|
|
23
23
|
server: PuakmaServer,
|
|
24
|
-
app_ids:
|
|
24
|
+
app_ids: set[int],
|
|
25
25
|
output_dir: Path,
|
|
26
26
|
timeout: int,
|
|
27
27
|
include_source: bool,
|
|
@@ -86,7 +86,7 @@ async def _aexport_app_pmx(
|
|
|
86
86
|
def export(
|
|
87
87
|
workspace: Workspace,
|
|
88
88
|
server: PuakmaServer,
|
|
89
|
-
app_ids:
|
|
89
|
+
app_ids: set[int],
|
|
90
90
|
*,
|
|
91
91
|
timeout: int,
|
|
92
92
|
include_source: bool,
|
|
@@ -368,7 +368,7 @@ class PuakmaApplication:
|
|
|
368
368
|
@classmethod
|
|
369
369
|
def from_dir(cls, path: Path) -> PuakmaApplication:
|
|
370
370
|
"""
|
|
371
|
-
Returns an instance of this class from the .
|
|
371
|
+
Returns an instance of this class from the .pma file
|
|
372
372
|
within the given directory.
|
|
373
373
|
Raises ValueError if unsuccessful
|
|
374
374
|
"""
|
|
@@ -5,7 +5,6 @@ import sys
|
|
|
5
5
|
import threading
|
|
6
6
|
import time
|
|
7
7
|
from types import TracebackType
|
|
8
|
-
from typing import Literal
|
|
9
8
|
|
|
10
9
|
|
|
11
10
|
class Spinner:
|
|
@@ -53,6 +52,5 @@ class Spinner:
|
|
|
53
52
|
exc_type: type[BaseException] | None,
|
|
54
53
|
exc_val: BaseException | None,
|
|
55
54
|
exc_tb: TracebackType | None = None,
|
|
56
|
-
) ->
|
|
55
|
+
) -> None:
|
|
57
56
|
self.stop()
|
|
58
|
-
return False
|
|
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
|