(name: &str, spec: &ForwardSpec)
| 512 | } |
| 513 | |
| 514 | fn foreground_forward_started_message(name: &str, spec: &ForwardSpec) -> String { |
| 515 | format!( |
| 516 | "{} Forwarding port {} to sandbox {name}\n Access at: {}\n Press Ctrl+C to stop\n {}", |
| 517 | "✓".green().bold(), |
| 518 | spec.port, |
| 519 | spec.access_url(), |
| 520 | "Hint: pass --background to start forwarding without blocking your terminal".dimmed(), |
| 521 | ) |
| 522 | } |
| 523 | |
| 524 | async fn sandbox_exec_with_mode( |
| 525 | server: &str, |
no outgoing calls