Optional
clientThe standard streams client
The path to the directory containing command modules
The command string to be executed
Optional
hooksThe hooks emitter
Optional
optionsThe options config for the command
Optional
parseAn optional function to replace the default command parser
Optional
pluginsA list of plugins to load
Optional
description?: stringInitialize the plugin.
The context the plugin is being initialized in.
A boolean or promise that resolves to a boolean indicating whether the plugin was successfully initialized.
Optional
meta?: Record<string, any>Additional metadata about the plugin that doesn't fit in the standard fields.
Note: Plugin info on the Context
object will be frozen
after the plugin is initialized. However, the freeze is shallow, so
the fields of this object will be mutable by default.
Optional
resolveAn optional function to replace the default command resolver
Options for creating a new
Context
instance.