Skip to content

Commit

Permalink
Update readme to use env() instead of env_var*() (#2546)
Browse files Browse the repository at this point in the history
  • Loading branch information
laniakea64 authored Dec 23, 2024
1 parent 206b089 commit a6b0db5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1645,7 +1645,7 @@ olleh := shell('import sys; print(sys.argv[2][::-1])', 'hello')

#### Environment Variables

- `env(key)` β€” Retrieves the environment variable with name `key`, aborting
- `env(key)`<sup>1.15.0</sup> β€” Retrieves the environment variable with name `key`, aborting
if it is not present.

```just
Expand All @@ -1660,10 +1660,10 @@ $ just
/home/user1
```

- `env_var_or_default(key, default)` β€” Retrieves the environment variable with
- `env(key, default)`<sup>1.15.0</sup> β€” Retrieves the environment variable with
name `key`, returning `default` if it is not present.
- `env(key)`<sup>1.15.0</sup> β€” Alias for `env_var(key)`.
- `env(key, default)`<sup>1.15.0</sup> β€” Alias for `env_var_or_default(key, default)`.
- `env_var(key)` β€” Deprecated alias for `env(key)`.
- `env_var_or_default(key, default)` β€” Deprecated alias for `env(key, default)`.

A default can be substituted for an empty environment variable value with the
`||` operator, currently unstable:
Expand Down Expand Up @@ -2446,8 +2446,8 @@ HOME is '/home/myuser'

#### Setting `just` Variables from Environment Variables

Environment variables can be propagated to `just` variables using the functions
`env_var()` and `env_var_or_default()`. See
Environment variables can be propagated to `just` variables using the `env()` function.
See
[environment-variables](#environment-variables).

### Recipe Parameters
Expand Down

0 comments on commit a6b0db5

Please sign in to comment.