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

Function print_sandbox_header

crates/openshell-cli/src/run.rs:504–526  ·  view source on GitHub ↗
(sandbox: &Sandbox, display: Option<&ProvisioningDisplay>)

Source from the content-addressed store, hash-verified

502}
503
504fn print_sandbox_header(sandbox: &Sandbox, display: Option<&ProvisioningDisplay>) {
505 let lines = [
506 String::new(),
507 format!(
508 "{} {}",
509 "Created sandbox:".cyan().bold(),
510 sandbox.object_name().bold()
511 ),
512 String::new(),
513 ];
514 match display {
515 Some(d) => {
516 for line in lines {
517 d.println(&line);
518 }
519 }
520 None => {
521 for line in lines {
522 println!("{line}");
523 }
524 }
525 }
526}
527
528/// Show gateway status.
529#[allow(clippy::branches_sharing_code)]

Callers 1

sandbox_createFunction · 0.85

Calls 1

printlnMethod · 0.80

Tested by

no test coverage detected