Skip to content

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