Skip to content
/ envoy Public

Conveniences for manipulating environment variables.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

dherman/envoy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Envoy

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.

Example

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());

License

Licensed under either of

at your option.

Code of Conduct

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!

About

Conveniences for manipulating environment variables.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages