vibe-action 0.2.0

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
18
//! System provider for `{system_os}` — operating system name.

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

pub struct SystemOsProvider;

impl SystemProvider for SystemOsProvider {
    fn key(&self) -> SystemKey {
        SystemKey::Os
    }

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