Skip to content

feat: add --path / -p flag to cd command#26

Merged
fdarian merged 3 commits intomainfrom
feat/cd-path-flag
Feb 14, 2026
Merged

feat: add --path / -p flag to cd command#26
fdarian merged 3 commits intomainfrom
feat/cd-path-flag

Conversation

@fdarian
Copy link
Copy Markdown
Owner

@fdarian fdarian commented Feb 14, 2026

Summary

  • Add --path / -p flag to pm cd for explicitly printing the package directory path
  • Useful in contexts without the shell wrapper (e.g. Neovim) where you just need the path string

Test plan

  • bun run check:tsc passes
  • bun entries/cli.ts cd --path prints root workspace dir
  • bun entries/cli.ts cd -p prints root workspace dir (alias)

The wrapper only checked the first arg after `cd` for the `-*` pattern.
When running `pm cd <package> --path`, the flag was missed and the
wrapper still did `builtin cd`. Now checks all args.
@fdarian fdarian merged commit 4554707 into main Feb 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant