Skip to content

feat: Add path command to show absolute path of installed SDKs#3

Open
claude[bot] wants to merge 7 commits intomainfrom
claude/issue-1-20250727-1552
Open

feat: Add path command to show absolute path of installed SDKs#3
claude[bot] wants to merge 7 commits intomainfrom
claude/issue-1-20250727-1552

Conversation

@claude
Copy link
Copy Markdown

@claude claude bot commented Jul 27, 2025

Summary

  • Added a new path command that returns the absolute path of an installed SDK
  • If the SDK is not installed, it returns notfound
  • Implementation follows the same pattern as other commands in the codebase
  • Includes comprehensive tests covering normal and exceptional paths

Test plan

  • Unit tests pass
  • E2E tests with actual plugin installation
  • Verified functionality with installed and non-installed SDKs

Example usage:

# For an installed SDK
vfox path python@3.13.5
# Returns: /home/user/.version-fox/cache/python/v-3.13.5

# For an uninstalled SDK
vfox path python@3.13.4
# Returns: notfound

# For a non-existent SDK
vfox path nonexistent@1.0.0
# Returns: notfound

Fixes version-fox#497

Generated with Claude Code

claude bot and others added 7 commits July 27, 2025 15:59
This PR adds a new  command that returns the absolute path of an installed SDK.
If the SDK is not installed, it returns .

Example usage:
  vfox path nodejs@24
  # Returns: /home/user/.version-fox/cache/nodejs/v-24.4.1/nodejs-24.4.1 (if installed)
  # Returns: notfound (if not installed)

The implementation follows the same pattern as other commands in the codebase and
includes proper error handling for various edge cases.

Fixes version-fox#497

Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: yeshan333 <yeshan333@users.noreply.github.com>
- Add comprehensive unit tests for the path command
- Test argument parsing for various cases (no args, invalid format, empty SDK name/version)
- Test the specific etcd@3.6.0 case mentioned in requirements
- Verify path construction logic for installed SDKs
- Test that the command properly handles SDKs that are not found
- Add integration tests to verify command structure
- Update path.go to include filepath.Join in the output path

🤖 Generated with [Claude Code]

Co-Authored-By: Claude <noreply@anthropic.com>
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.

[Feature]: 增加命令可以返回sdk对应的绝对路径

1 participant