pub struct ApplicationOrchestrator { /* private fields */ }
Expand description
Orchestrates the entire application lifecycle This removes file loading knowledge from the TUI
Implementations§
Source§impl ApplicationOrchestrator
impl ApplicationOrchestrator
pub fn new(case_insensitive: bool, auto_hide_empty: bool) -> Self
Sourcepub fn create_tui_with_file(&self, file_path: &str) -> Result<EnhancedTuiApp>
pub fn create_tui_with_file(&self, file_path: &str) -> Result<EnhancedTuiApp>
Create a TUI with an initial file loaded The TUI doesn’t need to know about file types or loading
Sourcepub fn load_additional_file(
&self,
app: &mut EnhancedTuiApp,
file_path: &str,
) -> Result<()>
pub fn load_additional_file( &self, app: &mut EnhancedTuiApp, file_path: &str, ) -> Result<()>
Load additional files into existing TUI
Sourcepub fn execute_query(
&mut self,
app: &mut EnhancedTuiApp,
query: &str,
) -> Result<()>
pub fn execute_query( &mut self, app: &mut EnhancedTuiApp, query: &str, ) -> Result<()>
Execute a query in the TUI
Note: This is a simplified version - the TUI itself should use execute_query_v2
which properly handles the closures for apply_to_tui
Auto Trait Implementations§
impl Freeze for ApplicationOrchestrator
impl RefUnwindSafe for ApplicationOrchestrator
impl Send for ApplicationOrchestrator
impl Sync for ApplicationOrchestrator
impl Unpin for ApplicationOrchestrator
impl UnwindSafe for ApplicationOrchestrator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more