Move pkg/print to internal/print

Originally pkg/print was intended to be public to be used by plugin
developers, but this setting has to be defined by plugin-sdk and as such
it's moved to internal/format to be only used by terraform-docs core
project.

Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
This commit is contained in:
Khosrow Moossavi
2021-01-30 20:44:48 -05:00
parent 50043c6228
commit 89d7f6cf86
34 changed files with 286 additions and 180 deletions

View File

@@ -24,8 +24,8 @@ import (
"github.com/terraform-docs/terraform-docs/cmd"
"github.com/terraform-docs/terraform-docs/internal/format"
"github.com/terraform-docs/terraform-docs/internal/print"
"github.com/terraform-docs/terraform-docs/internal/terraform"
"github.com/terraform-docs/terraform-docs/pkg/print"
)
// These are practiaclly a copy/paste of https://github.com/spf13/cobra/blob/master/doc/md_docs.go
@@ -156,7 +156,7 @@ func printExample(buf *bytes.Buffer, name string) error {
buf.WriteString("```\n\n")
buf.WriteString("generates the following output:\n\n")
settings := print.NewSettings()
settings := print.DefaultSettings()
settings.ShowColor = false
options := &terraform.Options{
Path: "./examples",