shell-pool / shpool

Think tmux, then aim... lower
Apache License 2.0
1.18k stars 20 forks source link

FR: shpool should have a flag to disable threading exit status back #153

Open ethanpailes opened 2 months ago

ethanpailes commented 2 months ago

Sometimes the exit status of the shell is what is interesting, and sometimes a better question to answer with the exit status is "was the attach successful". This latter question can use useful if you want to automatically run shpool attach when you shell into a remote machine and display an error if it is not successful. Threading the error status back down causes problems for these sorts of setups.

I'm not sure what to call the flag. Maybe --error-status-mode attach, where the options are attach and shell (with shell as the default to maintain current behavior).