runtime-sdk 0.4.36__tar.gz → 0.4.38__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.
- {runtime_sdk-0.4.36 → runtime_sdk-0.4.38}/PKG-INFO +1 -1
- {runtime_sdk-0.4.36 → runtime_sdk-0.4.38}/pyproject.toml +1 -1
- {runtime_sdk-0.4.36 → runtime_sdk-0.4.38}/scripts/runtime_sdk/cli.py +26 -2
- {runtime_sdk-0.4.36 → runtime_sdk-0.4.38}/scripts/runtime_sdk.egg-info/PKG-INFO +1 -1
- {runtime_sdk-0.4.36 → runtime_sdk-0.4.38}/README.md +0 -0
- {runtime_sdk-0.4.36 → runtime_sdk-0.4.38}/scripts/runtime_sdk/__init__.py +0 -0
- {runtime_sdk-0.4.36 → runtime_sdk-0.4.38}/scripts/runtime_sdk/client.py +0 -0
- {runtime_sdk-0.4.36 → runtime_sdk-0.4.38}/scripts/runtime_sdk/config.py +0 -0
- {runtime_sdk-0.4.36 → runtime_sdk-0.4.38}/scripts/runtime_sdk.egg-info/SOURCES.txt +0 -0
- {runtime_sdk-0.4.36 → runtime_sdk-0.4.38}/scripts/runtime_sdk.egg-info/dependency_links.txt +0 -0
- {runtime_sdk-0.4.36 → runtime_sdk-0.4.38}/scripts/runtime_sdk.egg-info/entry_points.txt +0 -0
- {runtime_sdk-0.4.36 → runtime_sdk-0.4.38}/scripts/runtime_sdk.egg-info/requires.txt +0 -0
- {runtime_sdk-0.4.36 → runtime_sdk-0.4.38}/scripts/runtime_sdk.egg-info/top_level.txt +0 -0
- {runtime_sdk-0.4.36 → runtime_sdk-0.4.38}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: runtime-sdk
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.38
|
|
4
4
|
Summary: Runtime Python SDK and CLI
|
|
5
5
|
Project-URL: Repository, https://github.com/The-Money-Company-Limited/runtimevm
|
|
6
6
|
Project-URL: Issues, https://github.com/The-Money-Company-Limited/runtimevm/issues
|
|
@@ -536,13 +536,21 @@ def _windows_unsupported() -> bool:
|
|
|
536
536
|
|
|
537
537
|
|
|
538
538
|
def main(argv: list[str] | None = None) -> int:
|
|
539
|
+
raw_argv = list(sys.argv[1:] if argv is None else argv)
|
|
539
540
|
parser = build_parser()
|
|
540
|
-
args = parser.parse_args(
|
|
541
|
+
args = parser.parse_args(raw_argv)
|
|
541
542
|
|
|
542
543
|
if _windows_unsupported():
|
|
543
544
|
return report_error("runtime-sdk supports macOS and Linux only; Windows is not supported")
|
|
544
545
|
|
|
545
546
|
try:
|
|
547
|
+
enter_id: str | None = None
|
|
548
|
+
enter_command: list[str] | None = None
|
|
549
|
+
if args.command == "enter":
|
|
550
|
+
enter_id, enter_command, enter_err = _parse_enter_invocation(raw_argv, args.id, args.enter_command)
|
|
551
|
+
if enter_err:
|
|
552
|
+
return report_error(enter_err)
|
|
553
|
+
|
|
546
554
|
config = load_config()
|
|
547
555
|
if args.base_url:
|
|
548
556
|
config.base_url = args.base_url
|
|
@@ -628,7 +636,7 @@ def main(argv: list[str] | None = None) -> int:
|
|
|
628
636
|
if args.command == "start":
|
|
629
637
|
return handle_start(config, args.id)
|
|
630
638
|
if args.command == "enter":
|
|
631
|
-
return handle_enter(config,
|
|
639
|
+
return handle_enter(config, enter_id, enter_command)
|
|
632
640
|
if args.command in ("delete", "rm"):
|
|
633
641
|
return handle_delete(config, args.id, force=getattr(args, "force", False))
|
|
634
642
|
if args.command == "run":
|
|
@@ -705,6 +713,22 @@ def main(argv: list[str] | None = None) -> int:
|
|
|
705
713
|
# --------------------------------------------------------------------------- #
|
|
706
714
|
|
|
707
715
|
|
|
716
|
+
def _parse_enter_invocation(raw_argv: list[str], parsed_id: str | None, parsed_command: list[str]) -> tuple[str | None, list[str], str | None]:
|
|
717
|
+
enter_index = raw_argv.index("enter")
|
|
718
|
+
enter_args = raw_argv[enter_index + 1:]
|
|
719
|
+
if "--" not in enter_args:
|
|
720
|
+
if parsed_command:
|
|
721
|
+
return None, [], "enter command must be separated from the computer id with --"
|
|
722
|
+
return parsed_id, parsed_command, None
|
|
723
|
+
|
|
724
|
+
separator_index = enter_args.index("--")
|
|
725
|
+
before_separator = enter_args[:separator_index]
|
|
726
|
+
if len(before_separator) > 1:
|
|
727
|
+
return None, [], "enter accepts at most one computer id before --"
|
|
728
|
+
computer_id = before_separator[0] if before_separator else None
|
|
729
|
+
return computer_id, enter_args[separator_index + 1:], None
|
|
730
|
+
|
|
731
|
+
|
|
708
732
|
def write_json(payload: dict[str, Any], *, error: bool = False) -> int:
|
|
709
733
|
stream = sys.stderr if error else sys.stdout
|
|
710
734
|
stream.write(json.dumps(payload) + "\n")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: runtime-sdk
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.38
|
|
4
4
|
Summary: Runtime Python SDK and CLI
|
|
5
5
|
Project-URL: Repository, https://github.com/The-Money-Company-Limited/runtimevm
|
|
6
6
|
Project-URL: Issues, https://github.com/The-Money-Company-Limited/runtimevm/issues
|
|
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
|