config
config copied to clipboard
Identify which plugin command belongs to
From the context of a running command, there is no populated property indicating which plugin the command belongs to. We have BaseCommand
which has utilities used both by the CLI and plugins. I'd like it to be able to identify the plugin name/config in order to create a separate directory for placing assets so that plugins don't have conflicts when accessing these files.
We wanted Command
to not need to know about where it came from but I see how this could be useful.
I did it in this way this.config.findCommand(this.id).pluginName;