MCPcopy Create free account
hub / github.com/GCWing/BitFun / terminal_has_shell_integration

Function terminal_has_shell_integration

src/apps/desktop/src/api/terminal_api.rs:771–781  ·  view source on GitHub ↗
(
    session_id: String,
    state: State<'_, TerminalState>,
)

Source from the content-addressed store, hash-verified

769
770#[tauri::command]
771pub async fn terminal_has_shell_integration(
772 session_id: String,
773 state: State<'_, TerminalState>,
774) -> Result<bool, String> {
775 if is_remote_session(&session_id).await {
776 return Ok(false);
777 }
778
779 let api = state.get_or_init_api().await?;
780 Ok(api.has_shell_integration(&session_id).await)
781}
782
783#[tauri::command]
784pub async fn terminal_shutdown_all(state: State<'_, TerminalState>) -> Result<(), String> {

Callers

nothing calls this directly

Calls 3

is_remote_sessionFunction · 0.85
get_or_init_apiMethod · 0.80
has_shell_integrationMethod · 0.45

Tested by

no test coverage detected