Stop prompts for code generation when --no-interaction is set

When the console option `--no-interaction` is used, prompts for Method and Class generation will not be displayed to the user and the code generation will not occur.

Errors about missing Methods or Classes are still shown in the output in the normal way.