Feature #3: argfile support
v0.3.0 adds support for argfiles. Provides and easy way to telegraph dependencies and environment variables. Can also be used to to quickly open a shell with a specific environments, allowing multiple versions of programs to be installed without conflicting binaries.
# open new powershell with java8 environment (escaping @ with `)
tenv `@~/tenv/java8.tenv powershell
# ~/tenv/java8.tenv
-e JAVA_HOME=C:\Program Files\AdoptOpenJDK\jdk-8.0.275.1-hotspot
-p $JAVA_HOME/bin
-p C:\Program Files\AdoptOpenJDK\jre-8.0.275.1-hotspot\bin
Fixes
- #9 UNC paths are not converted to "normal" paths, so the paths should be compatible with most programs
- #10 ~ is now expanded to the home directory
Install
Install from http://crates.io/ via cargo
cargo install --locked tenv
Install from source
cargo install --path .