Feature request: print selected version
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 4.8k
- Forks
- 182
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 1
Description
It's possible to parse the currently selected version number with something like:
xcodes installed | grep "Selected" | awk '{print $1}'
But this relies on parsing output that is intended for human readers, which is usually not reliable or recommended practice.
Can we add an option to print the selected version? Perhaps it could be similar to xcodes select --print-path, but using --print-version / -v instead.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the implementation of xcodes select --print-path and the CLI option definitions. Add the requested way to print the selected version without parsing human-readable xcodes installed output, then verify that the selected version is printed as requested.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, swift
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100