nu_plugin_engine

Function add_plugin_to_working_set

Source
pub fn add_plugin_to_working_set(
    working_set: &mut StateWorkingSet<'_>,
    identity: &PluginIdentity,
) -> Result<Arc<PersistentPlugin>, ShellError>
Expand description

Find PersistentPlugin with the given identity in the working_set, or construct it if it doesn’t exist.

The garbage collection config is always found and set in either case.