kcmerrill / alfred

(v0.2) Even Batman needs a little help. Task runner. Automator. Build system.
MIT License
64 stars 14 forks source link

Q: Allow interactive tasks #82

Closed iilyak closed 6 years ago

iilyak commented 6 years ago

I use alfred to run docker images. Here is the example of alfred file https://github.com/iilyak/ddoc/blob/master/alfred.yml

It is at least 2 steps process:

I am looking for a solution to make this work using single command.

docker run -it does not work currently because alfred don't know how to deal with pseudo tty allocated by docker.

Most likely this is out of scope for alfred. However there might be some bash workarounds to make it work. Which you might know about. Any help appreciated.

kcmerrill commented 6 years ago

Use interactive: true

I'll get you an example and/or update the docs if need be.

On Wed, Jul 25, 2018, 7:28 AM iilyak notifications@github.com wrote:

I use alfred to run docker images. Here is the example of alfred file https://github.com/iilyak/ddoc/blob/master/alfred.yml

It is at least 2 steps process:

  • run container using alfred
  • attach to running container using docker

I am looking for a solution to make this work using single command.

docker run -it does not work currently because alfred don't know how to deal with pseudo tty allocated by docker.

Most likely this is out of scope for alfred. However there might be some bash workarounds to make it work. Which you might know about. Any help appreciated.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kcmerrill/alfred/issues/82, or mute the thread https://github.com/notifications/unsubscribe-auth/AAqMSWora-KBNVFw1NEeXuEKFrwUoBE8ks5uKHJ5gaJpZM4VgFWR .

kcmerrill commented 6 years ago

Alright, I updated the docs. I don't think you'll need to update alfred(as it's been in there for a while now) just hasn't been documented(sorry!).

https://github.com/kcmerrill/alfred/blob/master/TFM.md#interactive--bool