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

Function get_pty_manager

crates/opencode-server/src/routes.rs:3389–3391  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3387static PTY_MANAGER: std::sync::OnceLock<PtyManager> = std::sync::OnceLock::new();
3388
3389fn get_pty_manager() -> &'static PtyManager {
3390 PTY_MANAGER.get_or_init(PtyManager::new)
3391}
3392
3393async fn list_pty() -> Json<Vec<PtyInfo>> {
3394 let manager = get_pty_manager();

Callers 6

list_ptyFunction · 0.85
create_ptyFunction · 0.85
get_ptyFunction · 0.85
update_ptyFunction · 0.85
delete_ptyFunction · 0.85
pty_connectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected