pub struct RegisterCommand {
pub key: String,
pub folders: Vec<PathBuf>,
pub repo_name: Option<String>,
pub title: Option<String>,
pub pid: Option<u32>,
pub socket: Option<PathBuf>,
}Expand description
Registers a window’s open worktree folders (a companion feed op).
Exposed as a typed command so scripted/headless reporters and integration
tests can drive the registry the way the VS Code companion does. Mirrors
RegisterRequest.
Fields§
§key: StringStable per-window identity (the companion generates a per-activate UUID).
folders: Vec<PathBuf>A workspace-folder path (repeatable).
repo_name: Option<String>Repository root or name, when the window has one.
title: Option<String>Window title, for display.
pid: Option<u32>Reporting process id.
socket: Option<PathBuf>Control-socket path. Defaults to the per-user runtime location.
Implementations§
Trait Implementations§
Source§impl Args for RegisterCommand
impl Args for RegisterCommand
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for RegisterCommand
impl CommandFactory for RegisterCommand
Source§impl FromArgMatches for RegisterCommand
impl FromArgMatches for RegisterCommand
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
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(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Parser for RegisterCommand
impl Parser for RegisterCommand
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for RegisterCommand
impl RefUnwindSafe for RegisterCommand
impl Send for RegisterCommand
impl Sync for RegisterCommand
impl Unpin for RegisterCommand
impl UnsafeUnpin for RegisterCommand
impl UnwindSafe for RegisterCommand
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more