Skip to content

ez switch should not claim to switch when it doesn't #11

Description

@dezren39

When targeting a branch checked out in a worktree, ez switch prints "Switching" and a path but doesn't actually change the shell's working directory (without shell integration).

Fix:

  • Show clear error message when shell wrapper isn't active
  • Exit code 5 (usage error) when it can't actually switch
  • Add --no-cd-required flag that exits 0 and prints the path for callers handling cd themselves

Related to #1 (navigation in stack tree).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions