pub struct CloseCommand {
pub path: PathBuf,
pub window_only: bool,
pub dry_run: bool,
pub yes: bool,
pub socket: Option<PathBuf>,
}Expand description
Closes a worktree’s window and, for a linked worktree, deletes it — the
daemon’s two-phase close op driven from the CLI.
A CLI process is never a VS Code window, so it omits requester_key: the
daemon then treats the close as cross-window, signalling every owning window
to close and waiting (bounded ~20s) for them to unregister before it prunes.
All destructive/git logic (the git2 prune, the main-tree refusal) stays in
the daemon (ADR-0049); the CLI adds no new authority.
Fields§
§path: PathBufWorktree folder to close. A linked worktree is deleted; the main working tree only has its window closed (never deleted).
window_only: boolOnly close the worktree’s window(s); never delete the worktree.
dry_run: boolRun the safety check and print the report, but do not close or delete.
yes: boolSkip the interactive confirmation before deleting.
socket: Option<PathBuf>Control-socket path. Defaults to the per-user runtime location.
Implementations§
Trait Implementations§
Source§impl Args for CloseCommand
impl Args for CloseCommand
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 CloseCommand
impl CommandFactory for CloseCommand
Source§impl FromArgMatches for CloseCommand
impl FromArgMatches for CloseCommand
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.