feat: Add support for secret environment keys in info display and run command execution

This commit is contained in:
2026-06-27 12:46:51 -07:00
parent 3fc6dd99a6
commit 51fdce7eea
2 changed files with 22 additions and 0 deletions

View File

@@ -144,6 +144,8 @@ def run_info(args: argparse.Namespace) -> int:
print(f" {BOLD}env{RESET}:")
for key, val in deployed.env.items():
print(f" {key}={val}")
if deployed.secret_env_keys:
print(f" {BOLD}secrets{RESET}: {', '.join(deployed.secret_env_keys)}")
else:
print(f"\n {DIM}not deployed (run 'castle deploy'){RESET}")
@@ -205,6 +207,7 @@ def _info_json(
"runner": deployed.runner,
"run_cmd": deployed.run_cmd,
"env": deployed.env,
"secret_env_keys": deployed.secret_env_keys,
"port": deployed.port,
"managed": deployed.managed,
}