vibe-action 0.1.5

Command router — execute shell commands and LLM prompts via simple YAML actions.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! System provider for `{system_arch}` — CPU architecture.

use crate::models::context::ContextModel;
use crate::system::system::{SystemKey, SystemProvider};
use anyhow::Result;

pub struct SystemArchProvider;

impl SystemProvider for SystemArchProvider {
    fn key(&self) -> SystemKey {
        SystemKey::Arch
    }

    fn resolve(&self) -> Result<ContextModel> {
        Ok(ContextModel::String(std::env::consts::ARCH.to_string()))
    }
}