- Renamed directories: codex-rs -> llmx-rs, codex-cli -> llmx-cli
- Updated package.json files:
- Root: llmx-monorepo
- CLI: @llmx/llmx
- SDK: @llmx/llmx-sdk
- Updated pnpm workspace configuration
- Renamed binary: codex.js -> llmx.js
- Updated environment variables: CODEX_* -> LLMX_*
- Changed repository URLs to valknar/llmx
🤖 Generated with Claude Code
29 lines
621 B
Rust
29 lines
621 B
Rust
use std::fmt::Display;
|
|
|
|
use serde::Serialize;
|
|
|
|
#[derive(Clone, Debug, Eq, PartialEq, Serialize)]
|
|
pub struct ExecCall {
|
|
pub program: String,
|
|
pub args: Vec<String>,
|
|
}
|
|
|
|
impl ExecCall {
|
|
pub fn new(program: &str, args: &[&str]) -> Self {
|
|
Self {
|
|
program: program.to_string(),
|
|
args: args.iter().map(|&s| s.into()).collect(),
|
|
}
|
|
}
|
|
}
|
|
|
|
impl Display for ExecCall {
|
|
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
|
write!(f, "{}", self.program)?;
|
|
for arg in &self.args {
|
|
write!(f, " {arg}")?;
|
|
}
|
|
Ok(())
|
|
}
|
|
}
|