Skip to content

Refactor/platform abstraction#7

Merged
AzisK merged 4 commits intomainfrom
refactor/platform-abstraction
Feb 15, 2026
Merged

Refactor/platform abstraction#7
AzisK merged 4 commits intomainfrom
refactor/platform-abstraction

Conversation

@AzisK
Copy link
Owner

@AzisK AzisK commented Feb 15, 2026

No description provided.

…mands

- Add _default_play_cmd(): detects afplay (macOS), paplay/aplay/ffplay (Linux)
- Add _default_clipboard_cmd(): detects pbpaste (macOS), wl-paste/xclip/xsel (Linux)
- Inject 'run' dependency into get_text() for clipboard path (was calling
  subprocess.run directly, bypassing the DI pattern used everywhere else)
- Update speak_text() to use _default_play_cmd() instead of hardcoded 'afplay'
- Add 14 new tests for platform detection and clipboard run injection
- All 44 tests pass
@AzisK AzisK merged commit 29d60fc into main Feb 15, 2026
1 of 3 checks passed
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.

1 participant