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

Function draw

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

Draw the create provider modal overlay.

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

Source from the content-addressed store, hash-verified

12
13/// Draw the create provider modal overlay.
14pub fn draw(frame: &mut Frame<'_>, app: &App, area: Rect) {
15 let t = &app.theme;
16 let Some(form) = &app.create_provider_form else {
17 return;
18 };
19
20 match form.phase {
21 CreateProviderPhase::SelectType => draw_select_type(frame, form, area, t),
22 CreateProviderPhase::ChooseMethod => draw_choose_method(frame, form, area, t),
23 CreateProviderPhase::EnterKey => draw_enter_key(frame, form, area, t),
24 CreateProviderPhase::Creating => draw_creating(frame, form, area, t),
25 }
26}
27
28// ---------------------------------------------------------------------------
29// Phase 1: Select provider type

Callers

nothing calls this directly

Calls 4

draw_select_typeFunction · 0.85
draw_choose_methodFunction · 0.85
draw_enter_keyFunction · 0.85
draw_creatingFunction · 0.70

Tested by

no test coverage detected