Skip to content

Commit ca8f833

Browse files
committed
Move template package from internal to public
Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
1 parent b3ff514 commit ca8f833

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+296
-257
lines changed

internal/cli/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
"strings"
1616

1717
"github.com/terraform-docs/terraform-docs/internal/print"
18-
"github.com/terraform-docs/terraform-docs/internal/terraform"
18+
"github.com/terraform-docs/terraform-docs/terraform"
1919
)
2020

2121
// Mappings of CLI flags to Viper config

internal/cli/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ import (
2525
pluginsdk "github.com/terraform-docs/plugin-sdk/plugin"
2626
"github.com/terraform-docs/terraform-docs/internal/format"
2727
"github.com/terraform-docs/terraform-docs/internal/plugin"
28-
"github.com/terraform-docs/terraform-docs/internal/terraform"
2928
"github.com/terraform-docs/terraform-docs/internal/version"
29+
"github.com/terraform-docs/terraform-docs/terraform"
3030
)
3131

3232
// Runtime represents the execution runtime for CLI.

internal/format/asciidoc_document.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import (
1515
gotemplate "text/template"
1616

1717
"github.com/terraform-docs/terraform-docs/internal/print"
18-
"github.com/terraform-docs/terraform-docs/internal/terraform"
1918
"github.com/terraform-docs/terraform-docs/template"
19+
"github.com/terraform-docs/terraform-docs/terraform"
2020
)
2121

2222
//go:embed templates/asciidoc_document*.tmpl

internal/format/asciidoc_document_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ import (
1616
"github.com/stretchr/testify/assert"
1717

1818
"github.com/terraform-docs/terraform-docs/internal/print"
19-
"github.com/terraform-docs/terraform-docs/internal/terraform"
2019
"github.com/terraform-docs/terraform-docs/internal/testutil"
20+
"github.com/terraform-docs/terraform-docs/terraform"
2121
)
2222

2323
func TestAsciidocDocument(t *testing.T) {

internal/format/asciidoc_table.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import (
1515
gotemplate "text/template"
1616

1717
"github.com/terraform-docs/terraform-docs/internal/print"
18-
"github.com/terraform-docs/terraform-docs/internal/terraform"
1918
"github.com/terraform-docs/terraform-docs/template"
19+
"github.com/terraform-docs/terraform-docs/terraform"
2020
)
2121

2222
//go:embed templates/asciidoc_table*.tmpl

internal/format/asciidoc_table_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ import (
1616
"github.com/stretchr/testify/assert"
1717

1818
"github.com/terraform-docs/terraform-docs/internal/print"
19-
"github.com/terraform-docs/terraform-docs/internal/terraform"
2019
"github.com/terraform-docs/terraform-docs/internal/testutil"
20+
"github.com/terraform-docs/terraform-docs/terraform"
2121
)
2222

2323
func TestAsciidocTable(t *testing.T) {

internal/format/common_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ import (
1616

1717
"github.com/stretchr/testify/assert"
1818

19-
"github.com/terraform-docs/terraform-docs/internal/terraform"
2019
"github.com/terraform-docs/terraform-docs/internal/testutil"
20+
"github.com/terraform-docs/terraform-docs/terraform"
2121
)
2222

2323
func TestCommonSort(t *testing.T) {

internal/format/json.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"strings"
1717

1818
"github.com/terraform-docs/terraform-docs/internal/print"
19-
"github.com/terraform-docs/terraform-docs/internal/terraform"
19+
"github.com/terraform-docs/terraform-docs/terraform"
2020
)
2121

2222
// JSON represents JSON format.

internal/format/json_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ import (
1616
"github.com/stretchr/testify/assert"
1717

1818
"github.com/terraform-docs/terraform-docs/internal/print"
19-
"github.com/terraform-docs/terraform-docs/internal/terraform"
2019
"github.com/terraform-docs/terraform-docs/internal/testutil"
20+
"github.com/terraform-docs/terraform-docs/terraform"
2121
)
2222

2323
func TestJson(t *testing.T) {

internal/format/markdown_document.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import (
1515
gotemplate "text/template"
1616

1717
"github.com/terraform-docs/terraform-docs/internal/print"
18-
"github.com/terraform-docs/terraform-docs/internal/terraform"
1918
"github.com/terraform-docs/terraform-docs/template"
19+
"github.com/terraform-docs/terraform-docs/terraform"
2020
)
2121

2222
//go:embed templates/markdown_document*.tmpl

0 commit comments

Comments
 (0)