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

Interactive CLI #58

Open
emiltin opened this issue Jun 19, 2023 · 1 comment
Open

Interactive CLI #58

emiltin opened this issue Jun 19, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@emiltin
Copy link
Collaborator

emiltin commented Jun 19, 2023

For some testing purposes, it might be useful to have an interactive CLI, where you can send commands, see reponses, acticate alarms, etc.

Being interactive, it would be a bit similar to the RSMP simulator (which is a GUI application for Windows). In that sense you could argue that it would not add that much new value. However, doing it on the command-line does have some use-case, and importantly, it would work on Mac and Linux.

Based on disussion in #42.

@emiltin emiltin added the enhancement New feature or request label Jun 19, 2023
@emiltin
Copy link
Collaborator Author

emiltin commented Jun 19, 2023

Some ideas for how an interactive CLI might work:

% rmsp site --type tlc --config config/my_tlc.yaml -i
Starting site RN+SI0001.

> help
Commands:
  supervisors              # show supervisors
  alarm                    # trigger alarms
  dl                       # work with detector logics
  sg                       # work with signal groups

> supervisors
127.0.0.1          connected

> dl
DL1           0
DL2           0

> dl set DL1 1
OK

Honestly, would be quite a lot to design and implement.

Note that a "power user" mode of this is already avaiable: You can start an interctive Ruby session with the ìrb`command, then use the classes provided by the rsmp gem to interact with sites, supervisors, components, etc. But it requires that you know how to use the Ruby language.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant