mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-09 19:45:13 +02:00
14 lines
371 B
Rust
14 lines
371 B
Rust
// Phase 19 (Track M.1) — class-method benign control for Rust.
|
|
|
|
#[derive(Default)]
|
|
pub struct UserService;
|
|
|
|
impl UserService {
|
|
pub fn run(&self, input: &str) -> String {
|
|
let out = std::process::Command::new("true")
|
|
.arg(input)
|
|
.output()
|
|
.expect("exec");
|
|
String::from_utf8_lossy(&out.stdout).into_owned()
|
|
}
|
|
}
|