MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / map_tui_command

Function map_tui_command

crates/opencode-server/src/routes.rs:3824–3841  ·  view source on GitHub ↗
(command: &str)

Source from the content-addressed store, hash-verified

3822}
3823
3824fn map_tui_command(command: &str) -> &str {
3825 match command {
3826 "session_new" => "session.new",
3827 "session_share" => "session.share",
3828 "session_interrupt" => "session.interrupt",
3829 "session_compact" => "session.compact",
3830 "messages_page_up" => "session.page.up",
3831 "messages_page_down" => "session.page.down",
3832 "messages_line_up" => "session.line.up",
3833 "messages_line_down" => "session.line.down",
3834 "messages_half_page_up" => "session.half.page.up",
3835 "messages_half_page_down" => "session.half.page.down",
3836 "messages_first" => "session.first",
3837 "messages_last" => "session.last",
3838 "agent_cycle" => "agent.cycle",
3839 other => other,
3840 }
3841}
3842
3843async fn execute_tui_command(
3844 State(state): State<Arc<ServerState>>,

Callers 1

execute_tui_commandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected