Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

interactive task does not finish the task #66

Closed
marcingasior opened this issue Oct 14, 2015 · 5 comments
Closed

interactive task does not finish the task #66

marcingasior opened this issue Oct 14, 2015 · 5 comments

Comments

@marcingasior
Copy link

Hello,

I have to run a deployment shell script, which at one point prompt for y/n question, the shell task continues as expected, till script prints done message, than it fails to emit stop.

@simevidas
Copy link

I have a similar problem:

gulp.task('deploy', ['build-css', 'build-js'], shell.task('modulus deploy'));

test


Update: I was able to work around my issue by “answering” the y/no question via flag:

shell.task('modulus deploy -p "Web Platform Daily"') 

@sun-zheng-an
Copy link
Owner

@simevidas Did you turn on the interactive option?

@simevidas
Copy link

@sun-zheng-an Thanks :) I'll keep this in mind.

@m-a-r-c-e-l-i-n-o
Copy link

+1
I have a similar problem where my script asks multiple questions and fails to exit after the last one is entered. The "Enter" key simply acts as a newline. This can be replicated by doing the following:

Gulp.task( 'setup-commands', Shell.task(
    [
        'npm init'
    ], {
        interactive: true
    })
);

@27leaves
Copy link

same thing, doesn't exit with interactive=true, but only if user had to interact.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants