fix(CLI): Output "Plugin: " prefix only for external plugin comands

This commit is contained in:
Mariusz Nowak 2021-03-11 09:35:03 +01:00 committed by Mariusz Nowak
parent a9a48f675e
commit acf720cdef

View File

@ -297,7 +297,9 @@ functionalities related to given service or current environment.`
}
// print the name of the plugin
this.consoleLog(chalk.yellow.underline(`Plugin: ${command.pluginName}`));
this.consoleLog(
chalk.yellow.underline(`${command.isExternal ? 'Plugin: ' : ''}${command.pluginName}`)
);
this.displayCommandUsage(command, commandName);
this.displayCommandOptions(command);