Skip to content

Commit e48ba91

Browse files
committed
add doc
1 parent 8ede3cd commit e48ba91

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

crates/fspy/src/command.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ pub struct Command {
3030
}
3131

3232
impl Command {
33+
/// Create a new command to spy on the given program.
34+
/// Initially, environment variables are not inherited from the parent.
35+
/// To inherit, explicitly use `.envs(std::env::vars_os())`.
3336
pub fn new<P: AsRef<OsStr>>(program: P) -> Self {
3437
Self {
3538
program: program.as_ref().to_os_string(),

0 commit comments

Comments
 (0)