XcodesOrg / XcodesOrg/xcodes

Feature request: print selected version

Open
#273 1 comment 1 reaction 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.