Skip to main content

Module plugin_cmd

Module plugin_cmd 

Source
Expand description

Plugin management commands: install, list, remove, update.

These are client-side operations that manage the ~/.room/plugins/ directory. The daemon loads plugins from this directory on startup using libloading.

Structs§

PluginMeta
Metadata written alongside each installed plugin shared library.

Constants§

BUILTIN_PLUGINS
Statically compiled plugins shipped with the room binary.

Functions§

cmd_install
Install a plugin from crates.io.
cmd_list
List all plugins — builtins first, then installed external plugins.
cmd_remove
Remove an installed plugin.
cmd_update
Update an installed plugin to the latest (or specified) version.
lib_filename
Compute the expected shared library filename for a plugin crate.
meta_path
Path to the .meta.json file for a plugin.
resolve_crate_name
Resolve a user-supplied plugin name to the crate name on crates.io.
scan_installed
Scan the plugins directory and return metadata for all installed plugins.
short_name
Derive the short plugin name from a crate name.