//! Implements `limb cd`. Prints a worktree's path for shell `eval`.
use Result;
use crateCdArgs;
use crateContext;
use crateworktree;
/// Runs `limb cd`. Prints the selected worktree's path to stdout.
///
/// Used by shell wrappers emitted by `limb init` to implement
/// `cd "$(limb cd <name>)"`.
///
/// # Errors
///
/// Returns an error if the repo cannot be resolved or the name does not
/// match a worktree.