Skip to content

Commit 84f4c8e

Browse files
Unmute stdout after prompter execution
In order to prevent double printing of stdout data, CLI mutes the stdout. However this is done in prompter constructor, so every class, that depends on the prompter, automatically mutes the stdout. Basically CLI mutes the stdout on almost all commands. This causes issues when `tns plugin add` command is used and the plugin wants to prompt the user for something on postinstall. Fix this by calling mute exactly before prompting the user and calling unmute immediately after user sends his answer.
1 parent e63a3b5 commit 84f4c8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/common

0 commit comments

Comments
 (0)