aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorManlio Perillo <manlio.perillo@gmail.com>2023-01-23 11:28:32 +0100
committerAndrew Kelley <andrew@ziglang.org>2023-10-17 20:10:23 -0700
commit053119083c2c93cb1fc4129bc647c03301f4010d (patch)
tree242484e01291155621e8655635fa9e4276eb03b1 /src/Module.zig
parent7a9500fd80990a3dc47821e627162bf769eecbba (diff)
downloadzig-053119083c2c93cb1fc4129bc647c03301f4010d.tar.gz
zig-053119083c2c93cb1fc4129bc647c03301f4010d.zip
zig env: remove the json output
The current json output is not very convenient to use from the shell or a Zig program. An example using the shell: `zig env | jq -r .lib_dir`. Remove the json output, and instead use the POSIX shell syntax: name="value" Additionally, when args is not empty, assume each argument is the environment variable name and print the associated value. Unrecognized environment variables are ignored. The new output format has been copied from `go env`, with the difference that `go env` uses OS specific syntax for windows and plan9. Define the environment variables in a single place, in order to avoid possible bugs.
Diffstat (limited to 'src/Module.zig')
0 files changed, 0 insertions, 0 deletions