Skip to main content

Module registry

Module registry 

Source
Expand description

The compiled-in plugin registry behind -p / --plugin. The port of go/cli/registry.go.

The TypeScript CLI requires a plugin module at run time. Rust, like Go, has no way to load one by name, so a reference resolves against this registry instead. The plugins already in the crate’s dependency graph are registered at first use, and a custom binary adds its own with register_plugin before calling run_with_plugins.

Functions§

plugins
A snapshot of every registered plugin, keyed by reference name.
register_plugin
Make plugin available to -p / --plugin under name.