monome / druid

terminal interface for crow
GNU General Public License v3.0
35 stars 16 forks source link

Run a script from cli without storing it in flash. Closes #83 #84

Closed xmacex closed 1 year ago

xmacex commented 1 year ago

Hi, this exposes the crow.execute to the CLI interface, and updates the docs too... I hope all of them. Feedback and review welcome of course.

caw!

xmacex commented 1 year ago

Hi, thanks for your consideration. The contribution piggybags on the already exposed upload command, running is a simpler case.

Yes I tried a bunch of scripts yesterday unsystematically with a short script in flash and running a long one, and expecting to get back to the short one after a reset (worked), and vice versa (also worked).

Here's a bunch of basic tests, plus a parametrized tests for running a collection of crow scripts and which check what crow reports it is running at the moment. I used bowery, considering it a canonical collection. Works fine doing a couple of rounds of runs through entire bowery. What these tests do not cover is interactions of what's in the flash and what gets run, but unsystematic tests yesterday as described above seemed to work. Feedback is always welcome.

Maybe ^^reset too could be exposed to cli actually.

caw

PS. Should be noted that I develop straight on norns, and am new to the parameterized Python library.

tehn commented 1 year ago

fantastic, thank you!

reset would be great if you're up for it.