Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .changes/unreleased/FEATURES-20250811-174112.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kind: FEATURES
body: 'generate: Add support for unlinked actions'
body: 'generate: Add support for actions'
time: 2025-08-11T17:41:12.858383-04:00
custom:
Issue: "505"
2 changes: 1 addition & 1 deletion .changes/unreleased/FEATURES-20250811-174141.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kind: FEATURES
body: 'migrate: Add support for unlinked actions'
body: 'migrate: Add support for actions'
time: 2025-08-11T17:41:41.553344-04:00
custom:
Issue: "505"
2 changes: 1 addition & 1 deletion .changes/unreleased/FEATURES-20250811-174155.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kind: FEATURES
body: 'validate: Add support for unlinked actions'
body: 'validate: Add support for actions'
time: 2025-08-11T17:41:55.966547-04:00
custom:
Issue: "505"
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ cmpenv docs/data-sources/example.md expected-datasource.md
cmpenv docs/resources/example.md expected-resource.md
cmpenv docs/functions/example.md expected-function.md
cmpenv docs/ephemeral-resources/example.md expected-ephemeral-resource.md
cmpenv docs/actions/unlinked_example.md expected-unlinked-action.md
cmpenv docs/actions/example.md expected-action.md


-- expected-output.txt --
Expand All @@ -29,26 +29,26 @@ function "example" fallback template exists, creating template
generating missing ephemeral resource content
ephemeral resource "scaffolding_example" fallback template exists, creating template
generating missing action content
action "scaffolding_unlinked_example" fallback template exists, creating template
action "scaffolding_example" fallback template exists, creating template
generating missing provider content
provider "terraform-provider-scaffolding" template exists, skipping
rendering static website
cleaning rendered website dir
rendering templated website to static markdown
rendering "actions/unlinked_example.md.tmpl"
rendering "actions/example.md.tmpl"
rendering "data-sources/example.md.tmpl"
rendering "ephemeral-resources/example.md.tmpl"
rendering "functions/example.md.tmpl"
rendering "index.md.tmpl"
rendering "resources/example.md.tmpl"
-- expected-unlinked-action.md --
-- expected-action.md --
# Data Fields

Name: scaffolding_unlinked_example
Name: scaffolding_example
Type: Action
Description: Example unlinked action
Description: Example action
HasExample: true
ExampleFile: $WORK/examples/actions/scaffolding_unlinked_example/action.tf
ExampleFile: $WORK/examples/actions/scaffolding_example/action.tf
ProviderName: terraform-provider-scaffolding
ProviderShortName: scaffolding
RenderedProviderName: terraform-provider-scaffolding
Expand All @@ -70,7 +70,7 @@ SchemaMarkdown: <!-- action schema generated by tfplugindocs -->
lower: action
plainmarkdown: Action
prefixlines: Prefix: Action
split: [scaffolding unlinked example]
split: [scaffolding example]
title: Action
trimspace: Action
upper: ACTION
Expand All @@ -80,13 +80,13 @@ upper: ACTION
printf tffile:
## Example Usage

{{tffile "$WORK/examples/actions/scaffolding_unlinked_example/action.tf"}}
{{tffile "$WORK/examples/actions/scaffolding_example/action.tf"}}

tffile:
## Example Usage

```terraform
action "scaffolding_unlinked_example" "example" {
action "scaffolding_example" "example" {
config {
required_attr = "some-value"
}
Expand Down Expand Up @@ -665,8 +665,8 @@ The document generation tool looks for files in the following locations by defau
* **provider/provider.tf** example file for the provider index page
* **data-sources/`full data source name`/data-source.tf** example file for the named data source page
* **resources/`full resource name`/resource.tf** example file for the named data source page
-- examples/actions/scaffolding_unlinked_example/action.tf --
action "scaffolding_unlinked_example" "example" {
-- examples/actions/scaffolding_example/action.tf --
action "scaffolding_example" "example" {
config {
required_attr = "some-value"
}
Expand Down Expand Up @@ -723,7 +723,7 @@ resource "scaffolding_example" "example" {
}
},
"action_schemas": {
"scaffolding_unlinked_example": {
"scaffolding_example": {
"version": 0,
"block": {
"attributes": {
Expand All @@ -740,10 +740,9 @@ resource "scaffolding_example" "example" {
"optional": true
}
},
"description": "Example unlinked action",
"description": "Example action",
"description_kind": "plain"
},
"unlinked": {}
}
}
},
"resource_schemas": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ cmp templates/ephemeral-resources/example.markdown docs/ephemeral-resources/exam
cmp templates/ephemeral-resources/example.html.markdown docs/ephemeral-resources/example.html.markdown
cmp templates/ephemeral-resources/example.html.md docs/ephemeral-resources/example.html.md

cmp templates/actions/unlinked_example.md docs/actions/unlinked_example.md
cmp templates/actions/unlinked_example.markdown docs/actions/unlinked_example.markdown
cmp templates/actions/unlinked_example.html.markdown docs/actions/unlinked_example.html.markdown
cmp templates/actions/unlinked_example.html.md docs/actions/unlinked_example.html.md
cmp templates/actions/example.md docs/actions/example.md
cmp templates/actions/example.markdown docs/actions/example.markdown
cmp templates/actions/example.html.markdown docs/actions/example.html.markdown
cmp templates/actions/example.html.md docs/actions/example.html.md

cmp templates/index.md docs/index.md
cmp templates/index.markdown docs/index.markdown
Expand All @@ -51,16 +51,16 @@ function "example" static file exists, skipping
generating missing ephemeral resource content
ephemeral resource "scaffolding_example" static file exists, skipping
generating missing action content
action "scaffolding_unlinked_example" static file exists, skipping
action "scaffolding_example" static file exists, skipping
generating missing provider content
provider "terraform-provider-scaffolding" static file exists, skipping
rendering static website
cleaning rendered website dir
rendering templated website to static markdown
copying non-template file: "actions/unlinked_example.html.markdown"
copying non-template file: "actions/unlinked_example.html.md"
copying non-template file: "actions/unlinked_example.markdown"
copying non-template file: "actions/unlinked_example.md"
copying non-template file: "actions/example.html.markdown"
copying non-template file: "actions/example.html.md"
copying non-template file: "actions/example.markdown"
copying non-template file: "actions/example.md"
copying non-template file: "d/example.html.markdown"
copying non-template file: "d/example.html.md"
copying non-template file: "d/example.markdown"
Expand All @@ -81,22 +81,22 @@ copying non-template file: "r/example.html.markdown"
copying non-template file: "r/example.html.md"
copying non-template file: "r/example.markdown"
copying non-template file: "r/example.md"
-- templates/actions/unlinked_example.md --
-- templates/actions/example.md --
# Data Fields

Name: {{.Name}}
Type: {{.Type}}
-- templates/actions/unlinked_example.markdown --
-- templates/actions/example.markdown --
# Data Fields

Name: {{.Name}}
Type: {{.Type}}
-- templates/actions/unlinked_example.html.markdown --
-- templates/actions/example.html.markdown --
# Data Fields

Name: {{.Name}}
Type: {{.Type}}
-- templates/actions/unlinked_example.html.md --
-- templates/actions/example.html.md --
# Data Fields

Name: {{.Name}}
Expand Down Expand Up @@ -211,8 +211,8 @@ The document generation tool looks for files in the following locations by defau
* **provider/provider.tf** example file for the provider index page
* **data-sources/`full data source name`/data-source.tf** example file for the named data source page
* **resources/`full resource name`/resource.tf** example file for the named data source page
-- examples/actions/scaffolding_unlinked_example/action.tf --
action "scaffolding_unlinked_example" "example" {
-- examples/actions/scaffolding_example/action.tf --
action "scaffolding_example" "example" {
config {
required_attr = "some-value"
}
Expand Down Expand Up @@ -265,7 +265,7 @@ terraform import scaffolding_example.example "id-123"
}
},
"action_schemas": {
"scaffolding_unlinked_example": {
"scaffolding_example": {
"version": 0,
"block": {
"attributes": {
Expand All @@ -282,10 +282,9 @@ terraform import scaffolding_example.example "id-123"
"optional": true
}
},
"description": "Example unlinked action",
"description": "Example action",
"description_kind": "plain"
},
"unlinked": {}
}
}
},
"resource_schemas": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ cmpenv docs/data-sources/example.md expected-datasource.md
cmpenv docs/resources/example.md expected-resource.md
cmpenv docs/functions/example.md expected-function.md
cmpenv docs/ephemeral-resources/example.md expected-ephemeral-resource.md
cmpenv docs/actions/unlinked_example.md expected-unlinked-action.md
cmpenv docs/actions/example.md expected-action.md

-- expected-output.txt --
rendering website for provider "terraform-provider-scaffolding" (as "Scaffolding")
Expand All @@ -28,26 +28,26 @@ function "example" template exists, skipping
generating missing ephemeral resource content
ephemeral resource "scaffolding_example" template exists, skipping
generating missing action content
action "scaffolding_unlinked_example" template exists, skipping
action "scaffolding_example" template exists, skipping
generating missing provider content
provider "terraform-provider-scaffolding" template exists, skipping
rendering static website
cleaning rendered website dir
rendering templated website to static markdown
rendering "actions/unlinked_example.md.tmpl"
rendering "actions/example.md.tmpl"
rendering "data-sources/example.md.tmpl"
rendering "ephemeral-resources/example.md.tmpl"
rendering "functions/example.md.tmpl"
rendering "index.md.tmpl"
rendering "resources/example.md.tmpl"
-- expected-unlinked-action.md --
-- expected-action.md --
# Data Fields

Name: scaffolding_unlinked_example
Name: scaffolding_example
Type: Action
Description: Example unlinked action
Description: Example action
HasExample: true
ExampleFile: $WORK/examples/actions/scaffolding_unlinked_example/action.tf
ExampleFile: $WORK/examples/actions/scaffolding_example/action.tf
ProviderName: terraform-provider-scaffolding
ProviderShortName: Scaffolding
RenderedProviderName: Scaffolding
Expand All @@ -69,7 +69,7 @@ SchemaMarkdown: <!-- action schema generated by tfplugindocs -->
lower: action
plainmarkdown: Action
prefixlines: Prefix: Action
split: [scaffolding unlinked example]
split: [scaffolding example]
title: Action
trimspace: Action
upper: ACTION
Expand All @@ -79,13 +79,13 @@ upper: ACTION
printf tffile:
## Example Usage

{{tffile "$WORK/examples/actions/scaffolding_unlinked_example/action.tf"}}
{{tffile "$WORK/examples/actions/scaffolding_example/action.tf"}}

tffile:
## Example Usage

```terraform
action "scaffolding_unlinked_example" "example" {
action "scaffolding_example" "example" {
config {
required_attr = "some-value"
}
Expand Down Expand Up @@ -378,7 +378,7 @@ resource "scaffolding_example" "example" {
configurable_attribute = "some-value"
}
```
-- templates/actions/unlinked_example.md.tmpl --
-- templates/actions/example.md.tmpl --
# Data Fields

Name: {{.Name}}
Expand Down Expand Up @@ -681,8 +681,8 @@ The document generation tool looks for files in the following locations by defau
* **provider/provider.tf** example file for the provider index page
* **data-sources/`full data source name`/data-source.tf** example file for the named data source page
* **resources/`full resource name`/resource.tf** example file for the named data source page
-- examples/actions/scaffolding_unlinked_example/action.tf --
action "scaffolding_unlinked_example" "example" {
-- examples/actions/scaffolding_example/action.tf --
action "scaffolding_example" "example" {
config {
required_attr = "some-value"
}
Expand Down Expand Up @@ -752,7 +752,7 @@ terraform import scaffolding_example.example "id-123"
}
},
"action_schemas": {
"scaffolding_unlinked_example": {
"scaffolding_example": {
"version": 0,
"block": {
"attributes": {
Expand All @@ -769,10 +769,9 @@ terraform import scaffolding_example.example "id-123"
"optional": true
}
},
"description": "Example unlinked action",
"description": "Example action",
"description_kind": "plain"
},
"unlinked": {}
}
}
},
"resource_schemas": {
Expand Down
Loading
Loading