We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65fd377 commit 280f537Copy full SHA for 280f537
core/examples/basic.rs
@@ -16,7 +16,7 @@ fn main() {
16
let mut core = Core::new().unwrap();
17
18
let host = Local::new().and_then(|host| {
19
- command::factory(&host, "whoami", None).and_then(|mut cmd| {
+ Command::new(&host, "whoami", None).and_then(|mut cmd| {
20
cmd.exec().map(|out| {
21
println!("I'm currently running as {}", String::from_utf8_lossy(&out.stdout).trim());
22
})
0 commit comments