Skip to main content

Crate reovim_client_cli

Crate reovim_client_cli 

Source
Expand description

Reovim CLI Client - gRPC v2 command-line interface.

This crate provides a CLI client for interacting with reovim servers using the gRPC v2 protocol.

§Example

use reovim_client_cli::{CliArgs, CliAction};

#[tokio::main]
async fn main() {
    let args = CliArgs::parse();
    let result = args.execute().await;
    match result {
        Ok(output) => println!("{}", output),
        Err(e) => eprintln!("Error: {}", e),
    }
}

§Commands

  • keys <KEYS> - Send keys in vim notation
  • mode - Get current editor mode
  • cursor - Get cursor position
  • buffers - List open buffers
  • buffer [ID] - Get buffer content
  • ping - Health check
  • version - Get server version

§Protocol

This CLI uses gRPC v2 transport, not JSON-RPC v1. Connect to a server started with --grpc <PORT>.

Modules§

commands
CLI command implementations.

Structs§

CliArgs
CLI arguments for the gRPC v2 CLI client.
GrpcClient
gRPC v2 client for interacting with the reovim server.

Enums§

CliCommand
CLI commands.
GrpcClientError
Error type for gRPC client operations.
OutputFormat
Output format for CLI results.