# rework zig env · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/09dea957ed74f87b7f5f88bc2c760f3f93d0165a)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 09dea957ed74f87b7f5f88bc2c760f3f93d0165a

Requested commit: 09dea957ed74f87b7f5f88bc2c760f3f93d0165a

Commit: 09dea957ed74f87b7f5f88bc2c760f3f93d0165a

Tree: 3b517ec2e5efdedc3fbbeaf3f6a6249ccead7325

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
rework zig env

Introduce introspect.EnvVar which tracks all the environment variables
that are observed by the compiler, so that we can print them with `zig
env`.

The `zig env` command now prints both the resolved values as well as all
the possibly observed environment variables.

```

## Parents

- [053119083c2c93cb1fc4129bc647c03301f4010d](https://git.cafe/gitcafe/zig/commit/053119083c2c93cb1fc4129bc647c03301f4010d?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/09dea957ed74f87b7f5f88bc2c760f3f93d0165a?format=markdown)
