What the routes read: the plugins' commands, and one run against a plugin's commands.
API
@Interface()
export abstract class PluginCliCommands {
abstract list(): readonly PluginCliCommand[];
abstract run(
request: Opaque<"PluginCliCommandRun", PluginCliCommandRun>,
caller: CliCommandCaller,
): Promise<PluginCliCommandRunResponse | null>;
}Contract Topology
Static AST wiring across @Module / @Provide / @UseMembers (2)
list
list(): readonly PluginCliCommand[]Every valid plugin command, in load order.
@returns
readonly PluginCliCommand[]run
run(request: Opaque<"PluginCliCommandRun", PluginCliCommandRun>, caller: CliCommandCaller): Promise<PluginCliCommandRunResponse | null>Parses args against the named plugin's commands the caller may run; null when the plugin
has none. A non-administrator naming an admin command, or a package with no member command,
is a 403 admin_required; a member command with no Project a 400 project_required; a
requiresProjectListing command where the caller's Project does not list its plugin for this
machine a 403 plugin_not_enabled.
@paramcaller
CliCommandCaller@returns
Promise<PluginCliCommandRunResponse | null>