hosh-shell / hosh

Human Oriented SHell
https://hosh-shell.github.io
MIT License
26 stars 0 forks source link

waitSuccess #150

Closed dfa1 closed 4 years ago

dfa1 commented 4 years ago

Problem

https://medium.com/@marko.luksa/bash-trick-repeat-last-command-until-success-750a61c43c8a

Solution

A command wrapper like: hosh> waitSuccess { command }

Benefit Avoid to repeatedly hit the up-arrow and re-execute the command until it succeeds.

dfa1 commented 4 years ago

similar to #211 since it requires ability to run commands (promoting Interpreter and InterpreterAware as spi classes)