Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4829

Creating an ember command that doesn't exit

$
0
0

@skaterdav85 wrote:

I have a simple node script where I run node index.js and it waits and requires the user to Control + C to exit. I want to put this under a custom ember command. I already have the command set up, but the run function always exits, unlike when I run the node script standalone. How can I have it wait for the user to Control + C to exit just like when I run node index.js? Any tips or what to search for would be much appreciated!

EDIT: Return a promise from the run method and it fixes it.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4829

Trending Articles