Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move schemamd and functionmd packages to internal #354

Merged
merged 3 commits into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changes/unreleased/NOTES-20240410-161445.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: NOTES
SBGoods marked this conversation as resolved.
Show resolved Hide resolved
body: 'schemamd: The `schemamd` package has moved to `internal/schemamd` and can no
longer be imported'
time: 2024-04-10T16:14:45.685307-04:00
custom:
Issue: "354"
6 changes: 6 additions & 0 deletions .changes/unreleased/NOTES-20240410-161540.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: NOTES
SBGoods marked this conversation as resolved.
Show resolved Hide resolved
body: 'functionmd: The `functionmd` package has moved to `internal/functionmd` and
can no longer be imported'
time: 2024-04-10T16:15:40.388578-04:00
custom:
Issue: "354"
2 changes: 1 addition & 1 deletion functionmd/render.go → internal/functionmd/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

tfjson "github.com/hashicorp/terraform-json"

"github.com/hashicorp/terraform-plugin-docs/schemamd"
"github.com/hashicorp/terraform-plugin-docs/internal/schemamd"
)

// RenderArguments returns a Markdown formatted string of the function arguments.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/google/go-cmp/cmp"
tfjson "github.com/hashicorp/terraform-json"

"github.com/hashicorp/terraform-plugin-docs/functionmd"
"github.com/hashicorp/terraform-plugin-docs/internal/functionmd"
)

func TestRenderArguments(t *testing.T) {
Expand Down
5 changes: 3 additions & 2 deletions internal/provider/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ import (

tfjson "github.com/hashicorp/terraform-json"

"github.com/hashicorp/terraform-plugin-docs/functionmd"
"github.com/hashicorp/terraform-plugin-docs/internal/schemamd"

"github.com/hashicorp/terraform-plugin-docs/internal/functionmd"
"github.com/hashicorp/terraform-plugin-docs/internal/mdplain"
"github.com/hashicorp/terraform-plugin-docs/internal/tmplfuncs"
"github.com/hashicorp/terraform-plugin-docs/schemamd"
)

const (
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ import (

"github.com/google/go-cmp/cmp"
tfjson "github.com/hashicorp/terraform-json"
"github.com/hashicorp/terraform-plugin-docs/schemamd"

"github.com/hashicorp/terraform-plugin-docs/internal/schemamd"
)

func TestRender(t *testing.T) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
tfjson "github.com/hashicorp/terraform-json"
"github.com/zclconf/go-cty/cty"

"github.com/hashicorp/terraform-plugin-docs/schemamd"
"github.com/hashicorp/terraform-plugin-docs/internal/schemamd"
)

func TestWriteAttributeDescription(t *testing.T) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import (

"github.com/google/go-cmp/cmp"
tfjson "github.com/hashicorp/terraform-json"
"github.com/hashicorp/terraform-plugin-docs/schemamd"

"github.com/hashicorp/terraform-plugin-docs/internal/schemamd"
)

func TestWriteBlockTypeDescription(t *testing.T) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ import (

"github.com/google/go-cmp/cmp"
tfjson "github.com/hashicorp/terraform-json"
"github.com/hashicorp/terraform-plugin-docs/schemamd"
"github.com/zclconf/go-cty/cty"

"github.com/hashicorp/terraform-plugin-docs/internal/schemamd"
)

func TestWriteNestedAttributeTypeDescription(t *testing.T) {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/zclconf/go-cty/cty"

"github.com/hashicorp/terraform-plugin-docs/schemamd"
"github.com/hashicorp/terraform-plugin-docs/internal/schemamd"
)

func TestWriteType(t *testing.T) {
Expand Down