From 79669df479f0c071d2b11494732e51f16b764670 Mon Sep 17 00:00:00 2001 From: Jason Murray <15822260+chaosaffe@users.noreply.github.com> Date: Mon, 26 Jun 2023 13:42:22 -0700 Subject: [PATCH 1/2] Remove PATH from GetCommand helpText --- internal/command/get.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/command/get.go b/internal/command/get.go index 802af94db1..fc19997a70 100644 --- a/internal/command/get.go +++ b/internal/command/get.go @@ -47,10 +47,10 @@ func (c *GetCommand) Run(args []string) int { func (c *GetCommand) Help() string { helpText := ` -Usage: terraform [global options] get [options] PATH +Usage: terraform [global options] get [options] - Downloads and installs modules needed for the configuration given by - PATH. + Downloads and installs modules needed for the configuration in the + current working directory. This recursively downloads all modules needed, such as modules imported by modules imported by the root and so on. If a module is From 4c8e560120219d2811469dc677ecb1c467ed2324 Mon Sep 17 00:00:00 2001 From: Jason Murray <15822260+chaosaffe@users.noreply.github.com> Date: Thu, 13 Jul 2023 09:35:07 -0700 Subject: [PATCH 2/2] Update `get` CLI docs --- website/docs/cli/commands/get.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/cli/commands/get.mdx b/website/docs/cli/commands/get.mdx index a12dd87d12..f46b8776b9 100644 --- a/website/docs/cli/commands/get.mdx +++ b/website/docs/cli/commands/get.mdx @@ -10,7 +10,7 @@ The `terraform get` command is used to download and update ## Usage -Usage: `terraform get [options] PATH` +Usage: `terraform get [options]` The modules are downloaded into a `.terraform` subdirectory of the current working directory. Don't commit this directory to your version control