Crates.io | envoy |
lib.rs | envoy |
version | 0.1.3 |
source | src |
created_at | 2018-10-01 05:03:44.821388 |
updated_at | 2018-10-04 19:30:08.916284 |
description | Conveniences for manipulating environment variables. |
homepage | |
repository | https://github.com/dherman/envoy |
max_upload_size | |
id | 87355 |
size | 22,162 |
Envoy is a small library providing more convenient abstractions for manipulating environment variables than the standard library. In particular, Envoy has APIs for manipulating PATH
-like variables.
let path = envoy::path(); // get the `PATH`/`Path` variable
let updated = path.split()
.remove("/usr/local/bin") // remove /usr/local/bin
.prefix("/home/dherman/.bin"); // add /home/dherman/.bin to the front
envoy::set_path(updated.join().unwrap());
Licensed under either of
at your option.
Contribution to Envoy is organized under the terms of the Contributor Covenant Code of Conduct. The maintainer of Envoy, Dave Herman, personally promises to work actively to uphold that code of conduct. We aim to foster a community that is welcoming, inclusive, empathetic, and kind. If you share those goals and want to have fun hacking environment variables, we invite you to join us!