Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Identify which plugin command belongs to #91

Open
childish-sambino opened this issue Nov 14, 2019 · 2 comments
Open

Identify which plugin command belongs to #91

childish-sambino opened this issue Nov 14, 2019 · 2 comments

Comments

@childish-sambino
Copy link
Contributor

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.

@RasPhilCo
Copy link
Contributor

We wanted Command to not need to know about where it came from but I see how this could be useful.

@hectorvp
Copy link

hectorvp commented Jul 31, 2021

I did it in this way this.config.findCommand(this.id).pluginName;

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants