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

Function draw

crates/openshell-tui/src/ui/create_sandbox.rs:14–23  ·  view source on GitHub ↗

Draw the create sandbox modal overlay.

(frame: &mut Frame<'_>, app: &App, area: Rect)

Source from the content-addressed store, hash-verified

12
13/// Draw the create sandbox modal overlay.
14pub fn draw(frame: &mut Frame<'_>, app: &App, area: Rect) {
15 let Some(form) = &app.create_form else {
16 return;
17 };
18
19 match form.phase {
20 CreatePhase::Form => draw_form(frame, app, area),
21 CreatePhase::Creating => draw_creating(frame, app, area),
22 }
23}
24
25// ---------------------------------------------------------------------------
26// Form view

Callers

nothing calls this directly

Calls 2

draw_formFunction · 0.85
draw_creatingFunction · 0.70

Tested by

no test coverage detected