From 138e0fe9841b44a6d0402b66bbd0c10966cfe87b Mon Sep 17 00:00:00 2001 From: Charles Brunet Date: Tue, 10 Oct 2023 12:09:15 -0400 Subject: env.unset method --- docs/markdown/snippets/environment_unset.md | 4 ++++ docs/yaml/objects/env.yaml | 7 +++++++ 2 files changed, 11 insertions(+) create mode 100644 docs/markdown/snippets/environment_unset.md (limited to 'docs') diff --git a/docs/markdown/snippets/environment_unset.md b/docs/markdown/snippets/environment_unset.md new file mode 100644 index 000000000..887bc0d47 --- /dev/null +++ b/docs/markdown/snippets/environment_unset.md @@ -0,0 +1,4 @@ +## New `unset()` method on `environment` objects + +[[@env]] now has an [[env.unset]] method to ensure an existing environment +is *not* defined. diff --git a/docs/yaml/objects/env.yaml b/docs/yaml/objects/env.yaml index d784c68b8..714da4fe4 100644 --- a/docs/yaml/objects/env.yaml +++ b/docs/yaml/objects/env.yaml @@ -82,3 +82,10 @@ methods: description: The values to set kwargs_inherit: env.append + +- name: unset + returns: void + since: 1.4.0 + description: | + Unset the specified environment variable. If this variable does not exist, + nothing happens. -- cgit v1.2.3