Skip to content
This repository was archived by the owner on Nov 3, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/commands/worktree/cli_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub enum WorktreeCommands {
/// Remove a worktree set (alias for remove)
#[command(hide = true)]
Destroy(DestroyArgs),
/// List all worktree sets
/// List worktree sets (defaults to the current set when inside one)
List(ListArgs),
/// Show detailed status of a worktree set
Status(StatusArgs),
Expand Down Expand Up @@ -125,9 +125,16 @@ pub struct DestroyArgs {

#[derive(Args)]
pub struct ListArgs {
/// Worktree name (defaults to the current set inside .worktrees/<name>)
pub name: Option<String>,

/// Include realized repositories nested beneath other worktree repositories
#[arg(long, short = 'r')]
pub recursive: bool,

/// Return membership paths without observing branches or Git status
#[arg(long)]
pub metadata_only: bool,
}

#[derive(Args)]
Expand Down
Loading
Loading