marler8997 / zigup

Download and manage zig compilers.
MIT No Attribution
790 stars 61 forks source link

added support for environment variables in leiu of options #105

Open clay-curry opened 1 year ago

clay-curry commented 1 year ago

Support for this PR was originally articulated by @marler8997 as a // TODO on line 83.

This PR proposes a rather minor change to effectively extend the current functionality of the two existing CLI options (--install-dir and --path-link) such that they now will automatically inherit their values from environment variables (ZIG_INSTALL_DIR and ZIG_PATH_LINK, respectively). Documentation (via the help message zigup -h) was updated accordingly.

clay-curry commented 1 year ago

I discovered an issue with ZIG_PATH_LINK. One moment.

clay-curry commented 1 year ago

Disregard. It was a non-issue.