pub fn spawn_session_with_options(
theme: InlineTheme,
options: SessionOptions,
) -> Result<InlineSession>Expand description
Spawn a session using standalone options and local config types.
Examples found in repository?
examples/minimal_session.rs (line 13)
3fn main() {
4 let _header = InlineHeaderContext::default();
5 let _theme = InlineTheme::default();
6
7 // Keep this example non-interactive in CI.
8 if std::env::var("VTCODE_TUI_RUN_EXAMPLES").is_ok() {
9 let options = SessionOptions {
10 placeholder: Some("Prompt...".to_string()),
11 ..SessionOptions::default()
12 };
13 let _ = spawn_session_with_options(InlineTheme::default(), options);
14 }
15}