jpoiri
jpoiri

Reputation: 367

Ember Addon: Forcing overriting a file

I created a ember addon that installs the ember-cli-eslint addon when calling the afterInstall hook however when the plugin installs I always get prompted to if I want to override the .eslintrc files where I have to manually enter yes. Is there a way to force to always to override the files?

installing ember-cli-eslint
[?] Overwrite .eslintrc? No, skip
[?] Overwrite tests\.eslintrc? No, skip
skip .eslintrc
skip tests\.eslintrc

Upvotes: 0

Views: 82

Answers (1)

locks
locks

Reputation: 6577

Someone taught me this:

$ yes | ember install plugin-name

yes is a UNIX command that continually outputs yes, and | "pipes" it into the program, effectively answering yes every time ember install asks the user a question.

Upvotes: 1

Related Questions