aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/plugin/capable.rs
blob: 830a7dab92f09ee69575766ed9812ae4c7de13f6 (plain)
1
2
3
4
5
6
7
8
9
//! ref: composer/src/Composer/Plugin/Capable.php

use indexmap::IndexMap;

// The sole implementor is the PHP plugin proxy (Composer itself never implements Capable), so
// the trait is fallible: the answer crosses the RPC boundary.
pub trait Capable {
    fn get_capabilities(&self) -> anyhow::Result<IndexMap<String, String>>;
}