Skip to content

Conversation

@laysakura
Copy link
Contributor

Summary

  • Added --path flag to sprout create command that outputs only the worktree path
  • Enables one-liner usage: cd $(sprout create feature --path)
  • Improves developer workflow by combining creation and navigation in a single command

Changes

  • Modified create command to accept --path boolean option
  • Updated output behavior to print only path when flag is used
  • Added silent mode to parse_env_template to avoid mixing prompts with path output
  • Updated README with new one-liner usage pattern
  • Added comprehensive tests for the new flag behavior
  • Updated CHANGELOG.md with the new feature

Test plan

  • Run sprout create test-branch --path and verify it outputs only the path
  • Test one-liner usage: cd $(sprout create test-branch --path)
  • Verify error messages go to stderr when using --path flag
  • Confirm normal behavior without --path flag remains unchanged
  • All unit tests pass with make test
  • Code passes linting with make lint
  • Manual testing of various edge cases (non-git repo, existing worktree, etc.)

🤖 Generated with Claude Code

@laysakura laysakura merged commit 101d139 into main Jun 27, 2025
7 checks passed
@laysakura laysakura deleted the feat-cd-path branch June 27, 2025 12:50
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.

2 participants