Skip to content

Conversation

@claude
Copy link

@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 [email protected]
# Returns: /home/user/.version-fox/cache/python/v-3.13.5

# For an uninstalled SDK
vfox path [email protected]
# Returns: notfound

# For a non-existent SDK
vfox path [email protected]
# 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 <[email protected]>
- 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 [email protected] 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 <[email protected]>
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对应的绝对路径

2 participants