Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document using || to provide default for empty environment variable #2545

Merged
merged 1 commit into from
Dec 22, 2024

Conversation

casey
Copy link
Owner

@casey casey commented Dec 22, 2024

No description provided.

@casey casey enabled auto-merge (squash) December 22, 2024 22:00
@casey casey merged commit 206b089 into master Dec 22, 2024
5 checks passed
@casey casey deleted the or-defualt branch December 22, 2024 22:02
Comment on lines -1648 to +1652
- `env_var(key)` — Retrieves the environment variable with name `key`, aborting
- `env(key)` — Retrieves the environment variable with name `key`, aborting
if it is not present.

```just
home_dir := env_var('HOME')
home_dir := env('HOME')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why removing the documentation of env_var()?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

env(…) has been around for a while now, and is a shorter alias of env_var, so I figure I'd update that part of the docs to use the shorter version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants