Open gersht opened 11 years ago
I'm not sure about interactive commands, I like to have everything be independent (so you could use it in scripts etc.).
How would you feel about a --restart
flag that restarts a tunnel if it's already active?
BTW, it's precisely the use case for which I wrote myself this shell script: https://gist.github.com/5548625
so I agree something can be done here.
When trying to
shaft start [tunnelname]
, the tunnel may already be active. in that caser you issue a message sayingError: tunnel [tunnelname[ already active!
- maybe offer to restart it?Something in the line of:
Error: tunnel [tunnelname] already active! Would you like to restart it? [(Y)es/(N)o] >