-
Notifications
You must be signed in to change notification settings - Fork 46
blocking support #14
Comments
Agreed! I need tab one to authenticate a disk image, which takes input. Then after that, I need two other tabs to open up, but only once authenticated. So it needs the ability to call tabs within the commands, and delay tabs from loading. e.g.
|
Any chance of this now that the Ruby syntax is available? Here is how I see it working:
In this case, app_server would not be run right away. background_server would start, complete, then start the app_server tab. |
This sounds like a good idea for rake tasks and such. However my question is how will the tab know the command is competed? in some cases, say i have a 'script/server' running, that terminal will hang. I was thinking a possible solution could be something like:
Any ideas or suggestions? @dpickett your more than welcome to build it out. help is always appreciated =) |
If the tab hangs, then it's not an issue. Anything successful will return 0 status code. So for a chain of commands, you can do:
If anything fails, then it'll stop like it should. So if you wanted to migrate then start the server, you'd use:
That would do something like:
Does that make sense? |
hey KieranP, yes that does make sense, thanks =). I'll have to add the tab block feature, but i do have your mentioned chain feature here: 6fb856d so you could do this: |
I have a number of tabs that are dependent on the completion of a set of commands in tab 1 (a git pull and a rake db:migrate, for example). It would be great if I could have the other tabs wait for the completion of every command in tab 1.
I'd be happy to build this out, but I wasn't sure if you had a design strategy in mind.
The text was updated successfully, but these errors were encountered: