-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
In Vue2, it was very easy to add plugins as there was a Vue global instance to use. This is no longer the case in Vue 3 so might be worth looking at a different approach to inquirer-gui plugin registration.
An idea I had was to follow something like Pinia's approach where there's a create function that returns a plugin object to add additional form plugins.
So it may work something like the following:
const inquirerGui = createInquirerGui()
inquirerGui.use(AutocompletePlugin)
app.use(inquirerGui);
No need to find the form instance to register the plugin. everything can be done at the top level of the application.
Metadata
Metadata
Assignees
Labels
No labels