Conversation
f33b192 to
1f29abf
Compare
Signed-off-by: Freyskeyd <simon.paitrault@gmail.com>
1f29abf to
76b1dc1
Compare
|
ping @killercup and @epage for issue assert-rs/assert_cli#51 |
|
If this is only for assert-rs/assert_cli#51, I'd rather do it like assert-rs/assert_cli#54. But this feature has its own merits. I'd not call it |
|
Yeah, I think this is a feature needed outside of assert_cli. I was divide about the name.
What do you think? |
|
So, the starting point is an empty env, and we are copying the parent scope's env var.
Maybe `inherit_var`?
… Am 13.10.2017 um 10:55 schrieb Simon Paitrault ***@***.***>:
Yeah, I think this is a feature needed outside of assert_cli.
I was divide about the name.
• save
• recover
• keep
What do you think?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
|
why not: let env = Environment::empty()
.inherit_vars("^CARGO_.*")
.insert("CARGO_SOMETHING", "ok");We can also: let env = Environment::inherit_matches("^CARGO_*")
.insert("CARGO_SOMETHING", "ok"); |
|
I agree about For consistency, a So overall, I'd like to see
Question: If clients do not need |
Add a save method which accept a regex to save some variables when using the empty method.
Signed-off-by: Freyskeyd simon.paitrault@gmail.com