Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implements command mode for scripting support (#8) #11

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Legend28469
Copy link

This PR adds a new command mode that enables scripting and automation capabilities while maintaining the existing interactive mode functionality.

Features

  • New -c/--command flag for script mode
  • Case-insensitive command parsing
  • Comma-separated commands with optional spaces
  • Built-in 0.1s delay between commands for stability
  • Special commands:
    • WAIT:seconds for custom delays
    • TEXT:string for text input (case-sensitive)
  • Verbose command names for better readability

Changes

  • Added command mode implementation
  • Updated README with new feature documentation
  • Added virtual environment patterns to .gitignore

Testing Done

  • Tested command parsing with various formats
  • Verified case-insensitive command handling
  • Confirmed TEXT command preserves case
  • Tested WAIT command functionality
  • Verified backward compatibility with interactive mode

Closes #8

Adds a new -c/--command flag that enables script mode for automation:
- Case-insensitive command parsing
- Comma-separated commands with optional spaces
- Special commands: TEXT: and WAIT:
- Verbose command names for better readability
- Maintains backward compatibility with interactive mode

Example:
  roku -c "home, WAIT:1, down, TEXT:Breaking Bad"

Closes ncmiller#8
Add documentation for the new command mode feature including:
- Usage with -c flag
- Available commands
- Special commands (TEXT: and WAIT:)
- Built-in delay information
- Example scripts
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.

No command line control?
1 participant