MCPcopy Create free account
hub / github.com/CSpyridakis/notes / execute_system_cmd

Function execute_system_cmd

Rust/notes.rs:2105–2113  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2103}
2104
2105fn execute_system_cmd(){
2106 println!("\n======================================================================");
2107 println!("* SYSTEM COMMAND EXECUTION");
2108
2109 use std::process::Command;
2110 let rust_version_output = Command::new("rustc").arg("--version").output().expect("Failed to execute rustc");
2111 let rust_version = String::from_utf8_lossy(&rust_version_output.stdout);
2112 println!("Rust version: {}", rust_version);
2113}
2114
2115fn tests(){
2116 println!("\n======================================================================");

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected