vortex-cli 4.11.1__tar.gz → 4.12.1__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.11.1 → vortex_cli-4.12.1}/PKG-INFO +5 -12
- {vortex_cli-4.11.1 → vortex_cli-4.12.1}/README.md +4 -11
- {vortex_cli-4.11.1 → vortex_cli-4.12.1}/setup.cfg +1 -1
- {vortex_cli-4.11.1 → vortex_cli-4.12.1}/vortex/commands/clone.py +0 -1
- {vortex_cli-4.11.1 → vortex_cli-4.12.1}/vortex/logging.py +1 -2
- {vortex_cli-4.11.1 → vortex_cli-4.12.1}/vortex/main.py +0 -5
- {vortex_cli-4.11.1 → vortex_cli-4.12.1}/vortex/workspace.py +15 -3
- {vortex_cli-4.11.1 → vortex_cli-4.12.1}/vortex_cli.egg-info/PKG-INFO +5 -12
- {vortex_cli-4.11.1 → vortex_cli-4.12.1}/LICENSE +0 -0
- {vortex_cli-4.11.1 → vortex_cli-4.12.1}/setup.py +0 -0
- {vortex_cli-4.11.1 → vortex_cli-4.12.1}/vortex/__init__.py +0 -0
- {vortex_cli-4.11.1 → vortex_cli-4.12.1}/vortex/__main__.py +0 -0
- {vortex_cli-4.11.1 → vortex_cli-4.12.1}/vortex/cli.py +0 -0
- {vortex_cli-4.11.1 → vortex_cli-4.12.1}/vortex/colour.py +0 -0
- {vortex_cli-4.11.1 → vortex_cli-4.12.1}/vortex/commands/__init__.py +0 -0
- {vortex_cli-4.11.1 → vortex_cli-4.12.1}/vortex/commands/clean.py +0 -0
- {vortex_cli-4.11.1 → vortex_cli-4.12.1}/vortex/commands/code.py +0 -0
- {vortex_cli-4.11.1 → vortex_cli-4.12.1}/vortex/commands/config.py +0 -0
- {vortex_cli-4.11.1 → vortex_cli-4.12.1}/vortex/commands/copy.py +0 -0
- {vortex_cli-4.11.1 → vortex_cli-4.12.1}/vortex/commands/db.py +0 -0
- {vortex_cli-4.11.1 → vortex_cli-4.12.1}/vortex/commands/delete.py +0 -0
- {vortex_cli-4.11.1 → vortex_cli-4.12.1}/vortex/commands/docs.py +0 -0
- {vortex_cli-4.11.1 → vortex_cli-4.12.1}/vortex/commands/execute.py +0 -0
- {vortex_cli-4.11.1 → vortex_cli-4.12.1}/vortex/commands/find.py +0 -0
- {vortex_cli-4.11.1 → vortex_cli-4.12.1}/vortex/commands/grep.py +0 -0
- {vortex_cli-4.11.1 → vortex_cli-4.12.1}/vortex/commands/list.py +0 -0
- {vortex_cli-4.11.1 → vortex_cli-4.12.1}/vortex/commands/log.py +0 -0
- {vortex_cli-4.11.1 → vortex_cli-4.12.1}/vortex/commands/new.py +0 -0
- {vortex_cli-4.11.1 → vortex_cli-4.12.1}/vortex/commands/watch.py +0 -0
- {vortex_cli-4.11.1 → vortex_cli-4.12.1}/vortex/constants.py +0 -0
- {vortex_cli-4.11.1 → vortex_cli-4.12.1}/vortex/docs/Blackbook.pdf +0 -0
- {vortex_cli-4.11.1 → vortex_cli-4.12.1}/vortex/lib/puakma.jar +0 -0
- {vortex_cli-4.11.1 → vortex_cli-4.12.1}/vortex/models.py +0 -0
- {vortex_cli-4.11.1 → vortex_cli-4.12.1}/vortex/soap.py +0 -0
- {vortex_cli-4.11.1 → vortex_cli-4.12.1}/vortex/spinner.py +0 -0
- {vortex_cli-4.11.1 → vortex_cli-4.12.1}/vortex/util.py +0 -0
- {vortex_cli-4.11.1 → vortex_cli-4.12.1}/vortex_cli.egg-info/SOURCES.txt +0 -0
- {vortex_cli-4.11.1 → vortex_cli-4.12.1}/vortex_cli.egg-info/dependency_links.txt +0 -0
- {vortex_cli-4.11.1 → vortex_cli-4.12.1}/vortex_cli.egg-info/entry_points.txt +0 -0
- {vortex_cli-4.11.1 → vortex_cli-4.12.1}/vortex_cli.egg-info/requires.txt +0 -0
- {vortex_cli-4.11.1 → vortex_cli-4.12.1}/vortex_cli.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: vortex_cli
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.12.1
|
|
4
4
|
Summary: Vortex CLI
|
|
5
5
|
Home-page: https://github.com/jordanamos/vortex-cli
|
|
6
6
|
Author: Jordan Amos
|
|
@@ -70,23 +70,16 @@ While it is possible to use without it, this software has been purposefully desi
|
|
|
70
70
|
soap_path = system/SOAPDesigner.pma
|
|
71
71
|
default = server1 ; Useful when you have multiple definitions
|
|
72
72
|
|
|
73
|
+
|
|
73
74
|
[server1] ; This can be called whatever you want and can be referenced using the '--server' flag
|
|
74
75
|
host = example.com
|
|
75
76
|
port = 8080 ; we can overwrite the DEFAULT value
|
|
76
77
|
puakma_db_conn_id = 13
|
|
77
78
|
username = myuser ; Optional - Prompted at runtime if not provided
|
|
78
79
|
password = mypassword ; Optional - Prompted at runtime if not provided
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
```
|
|
83
|
-
"java.configuration.runtimes": [
|
|
84
|
-
{
|
|
85
|
-
"default": true,
|
|
86
|
-
"name": "JavaSE-1.8",
|
|
87
|
-
"path": "/Library/Java/JavaVirtualMachines/temurin-8.jdk/Contents/Home"
|
|
88
|
-
}
|
|
89
|
-
]
|
|
80
|
+
lib_path = ; additional jars that should be included in the classpath
|
|
81
|
+
java_home = /usr/lib/jvm/java-17-openjdk-amd64/ ; The local path to the JRE to use. Should be the same version running on your server
|
|
82
|
+
java_environment_name = JavaSE-17 ; Java Execution Environment name https://docs.osgi.org/reference/eenames.html
|
|
90
83
|
```
|
|
91
84
|
|
|
92
85
|
## Usage
|
|
@@ -47,23 +47,16 @@ While it is possible to use without it, this software has been purposefully desi
|
|
|
47
47
|
soap_path = system/SOAPDesigner.pma
|
|
48
48
|
default = server1 ; Useful when you have multiple definitions
|
|
49
49
|
|
|
50
|
+
|
|
50
51
|
[server1] ; This can be called whatever you want and can be referenced using the '--server' flag
|
|
51
52
|
host = example.com
|
|
52
53
|
port = 8080 ; we can overwrite the DEFAULT value
|
|
53
54
|
puakma_db_conn_id = 13
|
|
54
55
|
username = myuser ; Optional - Prompted at runtime if not provided
|
|
55
56
|
password = mypassword ; Optional - Prompted at runtime if not provided
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
```
|
|
60
|
-
"java.configuration.runtimes": [
|
|
61
|
-
{
|
|
62
|
-
"default": true,
|
|
63
|
-
"name": "JavaSE-1.8",
|
|
64
|
-
"path": "/Library/Java/JavaVirtualMachines/temurin-8.jdk/Contents/Home"
|
|
65
|
-
}
|
|
66
|
-
]
|
|
57
|
+
lib_path = ; additional jars that should be included in the classpath
|
|
58
|
+
java_home = /usr/lib/jvm/java-17-openjdk-amd64/ ; The local path to the JRE to use. Should be the same version running on your server
|
|
59
|
+
java_environment_name = JavaSE-17 ; Java Execution Environment name https://docs.osgi.org/reference/eenames.html
|
|
67
60
|
```
|
|
68
61
|
|
|
69
62
|
## Usage
|
|
@@ -63,7 +63,6 @@ async def _aexport_app_pmx(
|
|
|
63
63
|
ret_bytes = await server.download_designer.adownload_pmx(app_id, True, timeout)
|
|
64
64
|
now = datetime.datetime.now().strftime("%Y%m%d%H%M%S")
|
|
65
65
|
output_path = output_dir / f"{now}_{server.host}_{app_id}.pmx"
|
|
66
|
-
|
|
67
66
|
await asyncio.to_thread(_save_bytes, ret_bytes, output_path)
|
|
68
67
|
logger.info(f"Successfully exported {app_id} to {output_dir}")
|
|
69
68
|
return 0
|
|
@@ -71,13 +71,12 @@ class LoggingHandler(logging.Handler):
|
|
|
71
71
|
@classmethod
|
|
72
72
|
def log_to_file_and_exit(cls, exc: Exception, ret_code: int) -> NoReturn:
|
|
73
73
|
with contextlib.ExitStack() as ctx:
|
|
74
|
-
if cls.workspace is not None:
|
|
74
|
+
if cls.workspace is not None and sys.stdout.isatty():
|
|
75
75
|
cls.workspace.logs_dir.mkdir(exist_ok=True)
|
|
76
76
|
log_file_path = cls.workspace.logs_dir / "vortex.log"
|
|
77
77
|
cls._output_msg(f"Check the log at {log_file_path}")
|
|
78
78
|
log: IO[bytes] = ctx.enter_context(open(log_file_path, "wb"))
|
|
79
79
|
else:
|
|
80
|
-
cls._output_msg("Failed to write to log file. No Workspace set.")
|
|
81
80
|
log = sys.stdout.buffer
|
|
82
81
|
|
|
83
82
|
error_msg = f"{type(exc).__name__}:\n{exc}"
|
|
@@ -81,11 +81,6 @@ def main(argv: Sequence[str] | None = None) -> int:
|
|
|
81
81
|
action="store_true",
|
|
82
82
|
help="Initialise the workspace and config files, if they don't already exist",
|
|
83
83
|
)
|
|
84
|
-
parser.add_argument(
|
|
85
|
-
"--no-spin",
|
|
86
|
-
action="store_true",
|
|
87
|
-
help="Disable the spinner",
|
|
88
|
-
)
|
|
89
84
|
|
|
90
85
|
command_parser = parser.add_subparsers(dest="command")
|
|
91
86
|
cli.add_list_parser(command_parser)
|
|
@@ -25,12 +25,14 @@ SAMPLE_CONFIG = """\
|
|
|
25
25
|
[dev]
|
|
26
26
|
host =
|
|
27
27
|
port = 80
|
|
28
|
+
username =
|
|
29
|
+
password =
|
|
28
30
|
soap_path = system/SOAPDesigner.pma
|
|
29
31
|
web_design_path = system/webdesign.pma
|
|
30
32
|
puakma_db_conn_id =
|
|
31
33
|
lib_path =
|
|
32
|
-
|
|
33
|
-
|
|
34
|
+
java_home =
|
|
35
|
+
java_environment_name =
|
|
34
36
|
"""
|
|
35
37
|
|
|
36
38
|
|
|
@@ -305,7 +307,7 @@ class Workspace:
|
|
|
305
307
|
"path": str(dir),
|
|
306
308
|
"name": str(PuakmaApplication.from_dir(dir)),
|
|
307
309
|
}
|
|
308
|
-
for dir in self.listdir()
|
|
310
|
+
for dir in self.listdir(server)
|
|
309
311
|
]
|
|
310
312
|
)
|
|
311
313
|
folder_settings = {"folders": folders}
|
|
@@ -314,17 +316,27 @@ class Workspace:
|
|
|
314
316
|
settings: dict[str, Any] = workspace_settings.get("settings", {})
|
|
315
317
|
puakma_path = os.path.join(os.path.dirname(__file__), "lib", "puakma.jar")
|
|
316
318
|
referenced_libs = [puakma_path, os.path.join("zlib", "**", "*.jar")]
|
|
319
|
+
java_runtimes: list[dict[str, Any]] = [{}]
|
|
317
320
|
if server is not None:
|
|
318
321
|
config = configparser.ConfigParser()
|
|
319
322
|
config.read(self.server_config_file)
|
|
320
323
|
server_libs = config.get(server.name, "lib_path", fallback=None)
|
|
321
324
|
if server_libs:
|
|
322
325
|
referenced_libs.extend(server_libs.split(","))
|
|
326
|
+
java_home = config.get(server.name, "java_home", fallback=None)
|
|
327
|
+
java_environment_name = config.get(
|
|
328
|
+
server.name, "java_environment_name", fallback=None
|
|
329
|
+
)
|
|
330
|
+
if java_home and java_environment_name:
|
|
331
|
+
java_runtimes = [
|
|
332
|
+
{"default": True, "path": java_home, "name": java_environment_name}
|
|
333
|
+
]
|
|
323
334
|
|
|
324
335
|
java_project_settings = {
|
|
325
336
|
"java.project.sourcePaths": DesignType.source_dirs(),
|
|
326
337
|
"java.project.outputPath": "zbin",
|
|
327
338
|
"java.project.referencedLibraries": referenced_libs,
|
|
339
|
+
"java.configuration.runtimes": java_runtimes,
|
|
328
340
|
}
|
|
329
341
|
settings.update(java_project_settings)
|
|
330
342
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: vortex_cli
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.12.1
|
|
4
4
|
Summary: Vortex CLI
|
|
5
5
|
Home-page: https://github.com/jordanamos/vortex-cli
|
|
6
6
|
Author: Jordan Amos
|
|
@@ -70,23 +70,16 @@ While it is possible to use without it, this software has been purposefully desi
|
|
|
70
70
|
soap_path = system/SOAPDesigner.pma
|
|
71
71
|
default = server1 ; Useful when you have multiple definitions
|
|
72
72
|
|
|
73
|
+
|
|
73
74
|
[server1] ; This can be called whatever you want and can be referenced using the '--server' flag
|
|
74
75
|
host = example.com
|
|
75
76
|
port = 8080 ; we can overwrite the DEFAULT value
|
|
76
77
|
puakma_db_conn_id = 13
|
|
77
78
|
username = myuser ; Optional - Prompted at runtime if not provided
|
|
78
79
|
password = mypassword ; Optional - Prompted at runtime if not provided
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
```
|
|
83
|
-
"java.configuration.runtimes": [
|
|
84
|
-
{
|
|
85
|
-
"default": true,
|
|
86
|
-
"name": "JavaSE-1.8",
|
|
87
|
-
"path": "/Library/Java/JavaVirtualMachines/temurin-8.jdk/Contents/Home"
|
|
88
|
-
}
|
|
89
|
-
]
|
|
80
|
+
lib_path = ; additional jars that should be included in the classpath
|
|
81
|
+
java_home = /usr/lib/jvm/java-17-openjdk-amd64/ ; The local path to the JRE to use. Should be the same version running on your server
|
|
82
|
+
java_environment_name = JavaSE-17 ; Java Execution Environment name https://docs.osgi.org/reference/eenames.html
|
|
90
83
|
```
|
|
91
84
|
|
|
92
85
|
## Usage
|
|
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
|