mirror of
https://github.com/terraform-docs/terraform-docs.git
synced 2026-03-27 04:48:33 +07:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user