Skip to content

The IDE you know, rebuilt in Rust. IntelliJ IDEA–style keymap, tool windows and search-everywhere in a fast native app: editor, code insight, debugger, Git, terminal, database and HTTP clients for 60+ languages.

412 B
Raw Blame
use openidea_plugin::{Error, Invocation, Plugin, register_plugin};

#[derive(Default)]
struct WebPty;

impl Plugin for WebPty {
    fn run_command(&mut self, id: &str, _ctx: &Invocation, _arg: Option<&str>) -> Result<Option<String>, Error> {
        match id {
            "ping" => Ok(Some("Web PTY ready".into())),
            _ => Err(Error::NotFound(id.into())),
        }
    }
}

register_plugin!(WebPty);