From cb7a731da5fbc5c438f32d35492973f35a35a479 Mon Sep 17 00:00:00 2001 From: anastasiiakozlova245 Date: Wed, 3 Jan 2024 00:08:06 +0100 Subject: [PATCH 1/2] docs: add TOFUENV_AUTO_INSTALL example usage --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index e3b580b..e7926f3 100644 --- a/README.md +++ b/README.md @@ -155,10 +155,17 @@ String (Default: true) Should tofuenv automatically install tofu if the version specified by defaults or a .opentofu-version file is not currently installed. +Example: if auto installation is enabled, the version will be installed. ```console TOFUENV_AUTO_INSTALL=true tofu use ``` +Example: use 1.6.0-beta3 version that is not installed, and auto installation is disabled. +```console +$ TOFUENV_AUTO_INSTALL=false tofuenv use 1.6.0-beta3 +No installed versions of opentofu matched '^1.6.0-beta3$'. +``` + ##### `TOFUENV_CURL_OUTPUT` Integer (Default: 2) From abeac3a8f762538f332967dd3189bb57210d73ea Mon Sep 17 00:00:00 2001 From: anastasiiakozlova245 Date: Wed, 3 Jan 2024 00:11:54 +0100 Subject: [PATCH 2/2] docs: add TOFUENV_AUTO_INSTALL example usage --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e7926f3..2ab42f0 100644 --- a/README.md +++ b/README.md @@ -163,7 +163,7 @@ TOFUENV_AUTO_INSTALL=true tofu use Example: use 1.6.0-beta3 version that is not installed, and auto installation is disabled. ```console $ TOFUENV_AUTO_INSTALL=false tofuenv use 1.6.0-beta3 -No installed versions of opentofu matched '^1.6.0-beta3$'. +No installed versions of opentofu matched '^1.6.0-beta3$'. TOFUENV_AUTO_INSTALL is set to false, so exiting. ``` ##### `TOFUENV_CURL_OUTPUT`