Benign rust 75,618 installs Download

command-extra 1.2.0

“Additional methods for std::process::Command”

File under a vendored native dependency pathimports std::ffi::OsStr
SHA-2563dcc150dc976b4444fefb006cc1351d8690aa84cc6db079c168e2230fb2b7f21
MaleculeH(Po)

Evidence

English function-word token "the" lines 1–5
1//! Builder-style methods for [`Command`] that take `self` and return `Self`.
2//!
3//! [std]'s own builder methods return `&mut Command`. They chain, but the chain
4//! cannot produce a value, so a command that needs several settings has to be
5//! built …
Constructs a Rust process command lines 12–20
12:17… rocess::Command;
13//! fn lister(dir: &Path) -> Command {
14//! Command::new("ls")
15//! .with_current_dir(dir)
16//! .with_args(["-l", "-a"])
⋯4 lines
imports std::ffi::OsStr lines 31–45
⋯5 lines
36
37use std::{
38 ffi::OsStr,
39 path::Path,
40 process::{Command, Stdio},
41};
42
43/// Builder-style methods for [`Command`] that take `self` and return `Self`.
44pub trait CommandExtra: Sized {
45 /// Sets the working …

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.