liber-cli 0.1.0

AI-agent-readable company directory CLI
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Embedded JSON Schemas (draft-07) for the four entity files.

pub const PEOPLE: &str = include_str!("../schemas/people.schema.json");
pub const PRODUCTS: &str = include_str!("../schemas/products.schema.json");
pub const CUSTOMERS: &str = include_str!("../schemas/customers.schema.json");
pub const CHATS: &str = include_str!("../schemas/chats.schema.json");
pub const REPOS: &str = include_str!("../schemas/repos.schema.json");

pub fn for_entity(name: &str) -> Option<&'static str> {
    match name {
        "people" => Some(PEOPLE),
        "products" => Some(PRODUCTS),
        "customers" => Some(CUSTOMERS),
        "chats" => Some(CHATS),
        "repos" => Some(REPOS),
        _ => None,
    }
}