Create simple CLI application #50

Open
opened 5 months ago by kimimaru · 0 comments
Owner

Create a simple CLI application utilizing TRBot, called TRBotCLI, to press inputs on controllers locally. This shouldn't utilize any data or have any networking capabilities; the goal is to have a lightweight application that can perform the basic functionality of TRBot without having to set up a database and the like. This would also be useful for testing.

The plan would be similar to the following:

./TRBotCLI -s "_up right500ms -up34ms down350ms"

This should also accept text files for input. For instance:

./TRBotCLI -f "MyInputFile.txt"

Arguments:

  • -s - Accept an input sequence.
  • -f - Accept a file.

In the case of the file, TRBotCLI would read all the text in the file and replace all whitespace with the space character so it registers properly in the parser.

What needs to be decided is how to set essential data, such as the available inputs, macros, and so on. One option is to create a simple config file and accept it as another argument, -c. this would make it very easy to allow testing different configs. The default behavior can populate a specific set of data for the application to work with if no config file is provided.

Create a simple CLI application utilizing TRBot, called TRBotCLI, to press inputs on controllers locally. This shouldn't utilize any data or have any networking capabilities; the goal is to have a lightweight application that can perform the basic functionality of TRBot without having to set up a database and the like. This would also be useful for testing. The plan would be similar to the following: `./TRBotCLI -s "_up right500ms -up34ms down350ms"` This should also accept text files for input. For instance: `./TRBotCLI -f "MyInputFile.txt"` Arguments: * `-s` - Accept an input sequence. * `-f` - Accept a file. In the case of the file, TRBotCLI would read all the text in the file and replace all whitespace with the space character so it registers properly in the parser. What needs to be decided is how to set essential data, such as the available inputs, macros, and so on. One option is to create a simple config file and accept it as another argument, `-c`. this would make it very easy to allow testing different configs. The default behavior can populate a specific set of data for the application to work with if no config file is provided.
kimimaru added the
enhancement
label 5 months ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.