pub fn spawn_session_with_host(
theme: InlineTheme,
host: &impl HostAdapter,
) -> Result<InlineSession>Expand description
Spawn a session using defaults from a host adapter.
Examples found in repository?
examples/host_adapter_integration.rs (line 53)
44fn main() {
45 let host = DemoHost;
46 let _ = host.workspace_name();
47 let _ = host.workspace_root();
48 let _ = host.available_themes();
49 host.set_terminal_focused(true);
50
51 // Keep this example non-interactive in CI.
52 if std::env::var("VTCODE_TUI_RUN_EXAMPLES").is_ok() {
53 let _ = spawn_session_with_host(InlineTheme::default(), &host);
54 }
55}