INNER CODE UNIT · Rust

list_plugins

Drew-Alleman/DataSurgeon · src/plugins/mod.rs:317

pub fn list_plugins() {
    let existing_plugins = load_plugins();
    let plugin_path: String = get_plugin_path();
    // Check if there are no plugins
    if existing_plugins.is_empty() {
        println!("No plugins found. Plugin File: {}", &plugin_path);
        return;
    }
    println!("Plugin File: {}\n", plugin_path);

    // Define the widths of the columns
    let url_width = existing_plugins
        .iter()
        .map(|p| p.source_url.len())
        .max()
        .unwrap()
        .max("Source URL".len());
    let version_width = existing_plugins

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…