MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / dry_run

Function dry_run

examples/policy-advisor/ctf.py:304–319  ·  view source on GitHub ↗

Print gate list without making any network requests.

()

Source from the content-addressed store, hash-verified

302
303
304def dry_run() -> None:
305 """Print gate list without making any network requests."""
306 print(BANNER)
307 log("INFO", "Dry-run mode -- listing gates only")
308 print()
309 for g in GATES:
310 proto = "HTTPS" if g["port"] == 443 else "HTTP"
311 concurrent = " (concurrent)" if 4 <= g["num"] <= 6 else ""
312 print(
313 f" {CYAN}Gate {g['num']}{RESET} "
314 f"{BOLD}{g['name']}{RESET} "
315 f"{DIM}{g['host']}:{g['port']} {g['method']} {proto}{concurrent}{RESET}"
316 )
317 print(f" {DIM}{g['hint']}{RESET}")
318 print()
319 log("INFO", "Run without --dry-run inside a sandbox to start the challenge")
320
321
322# -- Sequential gate runner ----------------------------------------------------

Callers 1

ctf.pyFile · 0.85

Calls 1

logFunction · 0.70

Tested by

no test coverage detected