PluginCliService class

CLI command wrappers for plugin operations.

Thin wrappers around PluginOperationsService that handle CLI-specific concerns: console output, analytics logging, and process exit codes.

Constructors

PluginCliService({required PluginOperationsService operations, required void logEvent(String eventName, Map<String, Object?> metadata), required Set<String> getManagedPluginNames(), required void writeOutput(String message), required void writeError(String message)})
Create a CLI service backed by operations.

Properties

getManagedPluginNames Set<String> Function()
Get the set of managed plugin names.
final
hashCode int
The hash code for this object.
no setterinherited
logEvent → void Function(String eventName, Map<String, Object?> metadata)
Analytics event logger.
final
operations PluginOperationsService
The underlying operations service.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
writeError → void Function(String message)
Write an error message to stderr.
final
writeOutput → void Function(String message)
Write a success message to stdout.
final

Methods

disableAllPlugins() Future<PluginOperationResult>
CLI: Disable all enabled plugins.
disablePlugin(String plugin, [PluginScope? scope]) Future<PluginOperationResult>
CLI: Disable a plugin.
enablePlugin(String plugin, [PluginScope? scope]) Future<PluginOperationResult>
CLI: Enable a plugin.
installPlugin(String plugin, [PluginScope scope = PluginScope.user]) Future<PluginOperationResult>
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<PluginOperationResult>
CLI: Uninstall a plugin.
updatePlugin(String plugin, PluginScope scope) Future<PluginUpdateResult>
CLI: Update a plugin.

Operators

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