PluginCliService class

CLI command wrappers for plugin operations.

These provide thin wrappers around PluginOperationsService that handle CLI-specific concerns like console output and analytics logging.

Constructors

PluginCliService({required PluginOperationsService operations, required void logEvent(String source, Map<String, Object?> update), required Set<String> getManagedPluginNames(), required void writeOutput(String pluginId), required void writeError(String pluginId)})

Properties

getManagedPluginNames → Set<String> Function()
final
hashCode → int
The hash code for this object.
no setterinherited
logEvent → void Function(String source, Map<String, Object?> update)
final
operations → PluginOperationsService
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
writeError → void Function(String pluginId)
final
writeOutput → void Function(String pluginId)
final

Methods

disableAllPlugins() → Future<PluginCliResult>
CLI: Disable all plugins.
disablePlugin(String plugin, [PluginScope? scope]) → Future<PluginCliResult>
CLI: Disable a plugin.
enablePlugin(String plugin, [PluginScope? scope]) → Future<PluginCliResult>
CLI: Enable a plugin.
installPlugin(String plugin, [PluginScope scope = PluginScope.user]) → Future<PluginCliResult>
CLI: Install a plugin.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
uninstallPlugin(String plugin, [PluginScope scope = PluginScope.user, bool keepData = false]) → Future<PluginCliResult>
CLI: Uninstall a plugin.

Operators

operator ==(Object other) → bool
The equality operator.
inherited