//! `gwx cd` — move into a worktree.
//!//! With no argument this goes to the main worktree, mirroring how a bare `cd`
//! takes you home. Choosing from a list is `gwx list`.
useanyhow::Result;usecrate::cd_target;usecrate::cli::CdArgs;usecrate::repo::Repo;pubfnrun(args: CdArgs)->Result<()>{let repo =Repo::discover()?;let worktree = repo.resolve(args.name.as_deref())?;cd_target::request(&worktree.path)}