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

Class App

crates/openshell-tui/src/app.rs:508–659  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

506
507#[allow(clippy::struct_excessive_bools)]
508pub struct App {
509 pub running: bool,
510 pub screen: Screen,
511 pub input_mode: InputMode,
512 pub focus: Focus,
513 pub command_input: String,
514
515 /// Active color theme (dark or light).
516 pub theme: crate::theme::Theme,
517
518 /// When the splash screen was shown (for auto-dismiss timing).
519 pub splash_start: Option<Instant>,
520
521 // Active gateway connection
522 pub gateway_name: String,
523 pub endpoint: String,
524 pub client: OpenShellClient<InterceptedService<Channel, EdgeAuthInterceptor>>,
525 pub status_text: String,
526
527 // Gateway list
528 pub gateways: Vec<GatewayEntry>,
529 pub gateway_selected: usize,
530 pub pending_gateway_switch: Option<String>,
531
532 // Provider list
533 pub providers_v2_enabled: bool,
534 pub provider_entries: Vec<ProviderV2Entry>,
535 pub provider_names: Vec<String>,
536 pub provider_types: Vec<String>,
537 pub provider_cred_keys: Vec<String>,
538 pub provider_selected: usize,
539 pub provider_count: usize,
540
541 // Middle pane tab (providers vs global settings)
542 pub middle_pane_tab: MiddlePaneTab,
543
544 // Global policy indicator (dashboard)
545 pub global_policy_active: bool,
546 pub global_policy_version: u32,
547
548 // Global settings
549 pub global_settings: Vec<GlobalSettingEntry>,
550 pub global_settings_selected: usize,
551 pub global_settings_revision: u64,
552 pub setting_edit: Option<SettingEditState>,
553 pub confirm_setting_set: Option<usize>,
554 pub confirm_setting_delete: Option<usize>,
555 pub pending_setting_set: bool,
556 pub pending_setting_delete: bool,
557
558 // Provider CRUD
559 pub create_provider_form: Option<CreateProviderForm>,
560 pub provider_detail: Option<ProviderDetailView>,
561 pub update_provider_form: Option<UpdateProviderForm>,
562 pub confirm_provider_delete: bool,
563 pub pending_provider_get: bool,
564 pub pending_provider_delete: bool,
565 pub pending_provider_create: bool,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected