feat: extend enterprise gateway policies billing protocols and operations

This commit is contained in:
wlx committed 2026-10-13 19:08:50 +08:00
1 parent 1528b71882
commit af43947b5d
67 files changed
+1822 -69

No files matched your search

+4
View File
@@ -30,6 +30,10 @@ def execute(command, capture=False, data=None):
# shell stdin. This is especially important when deploy.py is invoked from
# an SSH heredoc; only an explicit data payload may be sent to a process.
options = {"input": data} if data is not None else {"stdin": subprocess.DEVNULL}
if command[:2] == ["docker", "compose"] and "--env-file" in command:
environment = os.environ.copy()
environment["MOYI_RUNTIME_ENV_FILE"] = str(Path(command[command.index("--env-file") + 1]).resolve())
options["env"] = environment
result = subprocess.run(command, cwd=HERE, capture_output=capture,
text=True, encoding="utf-8", errors="replace", **options)
if result.returncode: