Skip to content

feat(list): add version indicators and color coding#101

Merged
CalvinAllen merged 1 commit into
mainfrom
feat/list-version-indicators
Dec 11, 2025
Merged

feat(list): add version indicators and color coding#101
CalvinAllen merged 1 commit into
mainfrom
feat/list-version-indicators

Conversation

@CalvinAllen

Copy link
Copy Markdown
Contributor

Summary

Add visual indicators to distinguish version status in dtvem list output:

  • 🌐 emoji for global version
  • 📍 emoji for local version (from .dtvem/runtimes.json in directory tree)
  • Green highlighting for active version (local takes priority over global)

Changes

  • Export LocalVersion() function in config package
  • Add ActiveVersion() and DimText() helpers in ui package
  • Update list.go to show indicators and apply color coding

Example Output

Installed Node.js versions:
    18.0.0
    20.0.0  🌐
    22.0.0  📍    ← green (active)

Test plan

  • dtvem list node shows emoji indicators
  • dtvem list shows indicators for all runtimes
  • Active version (local > global) shown in green
  • All tests pass

Closes #8

Add visual indicators to distinguish version status in `dtvem list` output:

- 🌐 emoji for global version
- 📍 emoji for local version (from .dtvem/runtimes.json)
- Green highlighting for active version (local > global priority)

Changes:
- Export LocalVersion() in config package
- Add ActiveVersion() and DimText() helpers in ui package
- Update list.go to show indicators and color coding

Example output:
  Node.js:
    18.0.0
    20.0.0  🌐
    22.0.0  📍    ← green (active)

Closes #8
@CalvinAllen CalvinAllen merged commit 6867c54 into main Dec 11, 2025
10 checks passed
@CalvinAllen CalvinAllen deleted the feat/list-version-indicators branch December 11, 2025 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

feat(commands): add version indicators and color coding to list

1 participant