pgaskin / NickelMenu

The easiest way to launch scripts, change settings, and run actions on Kobo e-readers.
https://pgaskin.net/NickelMenu
MIT License
512 stars 25 forks source link

Implement conditional actions #20

Closed pgaskin closed 4 years ago

pgaskin commented 4 years ago

Closes #11.

pgaskin commented 4 years ago

I've tested this with:

menu_item:main:Test:cmd_output:500:mkdir /tmp/geek1011 && echo mkdir
chain:dbg_msg:Success
chain_failure:cmd_output:500:rm -rf /tmp/geek1011 && echo rm
chain_always:dbg_toast:Done

I've also tried it in a few actual ones to make sure it works with more complex chains

pgaskin commented 4 years ago

Also, @baskerville has tested this before I opened this PR.