repopilot 0.20.0

Local-first CLI for reviewing Git changes, security boundaries, and blast radius before merge.
Documentation
1
2
3
4
5
6
7
8
9
use crate::knowledge::active_knowledge;
use crate::knowledge::model::RuntimeProfile;

pub fn profile_by_id(id: &str) -> Option<&'static RuntimeProfile> {
    active_knowledge()
        .runtimes
        .iter()
        .find(|runtime| runtime.id == id)
}