braintree / runbook

A framework for gradual system automation
MIT License
730 stars 43 forks source link

Add metadata argument that saves TMUX panes #45

Closed ClashTheBunny closed 3 years ago

ClashTheBunny commented 3 years ago

Heyo,

I often want a half way between auto and not auto. I will often do something like:

git ls-files --exclude-standard -cmod data | entr run_runbook_that_opens_tmux_panes

do re-run my runbook on every invocation. But that has problems if I either force closing all panes, or if I have to interact with it every time. This option will allow you to add save_panes: true to your metadata and it will just exit quietly after a run, leaving your tmux windows open to check output. It, like runbook always does, will then reuse the panes for the next invocation.