Skip to main content

CliCommand

Enum CliCommand 

Source
pub enum CliCommand {
    Keys {
        keys: String,
        client: u64,
    },
    Mode {
        client: u64,
    },
    Cursor {
        client: u64,
    },
    Buffers,
    Buffer {
        id: Option<u64>,
    },
    Registers {
        name: Option<String>,
    },
    Capture {
        client: Option<u64>,
        capture_format: String,
        web_url: Option<String>,
        width: u32,
        height: u32,
        dpr: u32,
        output: Option<String>,
    },
    Ping,
    Version,
    Clients,
    ExtensionState {
        kind: String,
        client: u64,
    },
    Extensions,
}
Expand description

CLI commands.

Variants§

§

Keys

Send keys to a specific client.

Fields

§keys: String

Keys in vim notation (e.g., iHello<Esc>).

§client: u64

Target client ID to send keys to (required).

§

Mode

Get a specific client’s editor mode.

Fields

§client: u64

Target client ID to query mode from (required).

§

Cursor

Get a specific client’s cursor position.

Fields

§client: u64

Target client ID to query cursor from (required).

§

Buffers

List open buffers.

§

Buffer

Get buffer content.

Fields

§id: Option<u64>

Buffer ID (uses active buffer if not specified).

§

Registers

Get register contents.

Without arguments, lists all non-empty registers. With a register name, shows that register’s content.

Fields

§name: Option<String>

Register name (e.g., “a”, “"”, “0”).

§

Capture

Capture screen content.

For text formats (plain_text, raw_ansi, cell_grid): captures via gRPC relay from a connected TUI client (requires --client).

For visual formats (png, html): captures via Playwright headless browser running the real web client (requires --web-url).

Fields

§client: Option<u64>

Target client ID (required for text capture, ignored for web capture).

§capture_format: String

Capture format: raw_ansi, plain_text, cell_grid, png, html.

§web_url: Option<String>

Web client URL for visual capture (required for png/html formats).

§width: u32

Viewport width in pixels (web capture only).

§height: u32

Viewport height in pixels (web capture only).

§dpr: u32

Device pixel ratio (web capture only).

§output: Option<String>

Output file path (web capture only; stdout if omitted).

§

Ping

Ping the server (health check).

§

Version

Get server version and info.

§

Clients

List connected clients (read-only debug query).

§

ExtensionState

Query extension state (e.g., which-key, cmdline).

Fields

§kind: String

Extension kind to query (e.g., “whichkey”, “cmdline”).

§client: u64

Target client ID.

§

Extensions

List registered extensions.

Trait Implementations§

Source§

impl Debug for CliCommand

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromArgMatches for CliCommand

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

impl Subcommand for CliCommand

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more