Skip to content

Pluggable CLI #121

@jasonkuhrt

Description

@jasonkuhrt

Currently CLI cannot be plugged into. Prisma is an internal plugin, except for the CLI aspect which cheats, importing prisma logic.

A challenge will be the schism between cli and app. A CLI does not obviously know about this in code:

app.use(myPlugin)

possible solution areas

  • code-reflection (cli analyzes app code for use statements to know which plugins to activate in the cli
  • package.json/pumpkins-file config that opts-in to making cli use a plugin in the cli
  • same as above, but opt-out, automatically using any pumpkins-plugin-* package.

Also think about where the config can live, e.g.:

app.use(myPlugin({...}))

Does the user configure the plugin cli behaviour here? That would mean, again, code reflection.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions