From 53ee858851d335ad076502830da709aaf277bbd3 Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Tue, 8 Jan 2019 16:18:57 -0800 Subject: [PATCH] internal/init: Package for helpers of the "terraform init" command "terraform init" is quite a complex beast in relation to other commands since almost everything it does is unique to it and thus not factored out into other packages. To get some of that sprawl out of the "command" package, this new internal package will give us somewhere to put this init functionality that is also useful for test code that needs to mimic the initialization behavior against fixture directories. --- internal/init/doc.go | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 internal/init/doc.go diff --git a/internal/init/doc.go b/internal/init/doc.go new file mode 100644 index 000000000..7710e6ac1 --- /dev/null +++ b/internal/init/doc.go @@ -0,0 +1,7 @@ +// Package init contains various helper functions used by the "terraform init" +// command. +// +// These functions may also be used from testing code to simulate the behaviors +// of "terraform init" against test fixtures, but should not be used elsewhere +// in the main code. +package init