pub struct ReloadCommand {
pub paths: Vec<PathBuf>,
pub output: TableOrJson,
pub socket: Option<PathBuf>,
}Expand description
Signals worktrees’ open VS Code windows to reload themselves (#1417).
The CLI counterpart of the tree view’s “Reload Window” — the batch form of
Developer: Reload Window, which otherwise has to be run by hand in each
window in turn.
Addresses windows by key like reposition, so a list call up front maps
each folder to the key of the window that has it open. Unlike the tree view,
a worktree with no open window is an error rather than a silent skip:
there the selection is a sweep, here the user named each target explicitly.
The daemon only marks a directive per target; each window acts on it on its next heartbeat, up to ~10s later. Nothing here waits for that, which is why the output says how many windows were signalled.
Fields§
§paths: Vec<PathBuf>Worktree folders whose windows to reload. Each is canonicalized client-side, as the daemon runs in a different cwd and matches by canonical path.
output: TableOrJsonOutput format.
socket: Option<PathBuf>Control-socket path. Defaults to the per-user runtime location.
Implementations§
Trait Implementations§
Source§impl Args for ReloadCommand
impl Args for ReloadCommand
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
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for ReloadCommand
impl CommandFactory for ReloadCommand
Source§impl FromArgMatches for ReloadCommand
impl FromArgMatches for ReloadCommand
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>
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>
ArgMatches to self.