Skip to content

cursorless-dev/talon-rpc

Repository files navigation

Talon RPC server

File based RPC server compatible with the Talon community command client

Installation

npm install talon-rpc

Usage

import { NodeIo, TalonRpcServer } from "talon-rpc";

function runCommand(commandId, args, options) {
    // Do something
}

const io = new NodeIo("vscode-command-server");
const rpc = new TalonRpcServer(io, runCommand);

await io.initialize();

onKeypress(async () => {
    await rpc.executeRequest();
});

About

RPC library for Talon

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published