Dagger
Search

terraform-docs

This module provides a function to generate Terraform modules documentation.

Installation

dagger install github.com/tsirysndr/daggerverse/terraform-docs@e8bed26dfefaaf4ef3d00958965575131f34c69c

Entrypoint

Return Type
TerraformDocs
Example
dagger -m github.com/tsirysndr/daggerverse/terraform-docs@e8bed26dfefaaf4ef3d00958965575131f34c69c call \
func (m *myModule) example() *TerraformDocs  {
	return dag.
			TerraformDocs()
}
@function
def example() -> dag.TerraformDocs:
	return (
		dag.terraform_docs()
	)
@func()
example(): TerraformDocs {
	return dag
		.terraformDocs()
}

Types

TerraformDocs 🔗

generate() 🔗

Generate Terraform modules documentation

Return Type
File !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
pathString "."No description provided
formatString "md"No description provided
outputString "README.md"No description provided
Example
dagger -m github.com/tsirysndr/daggerverse/terraform-docs@e8bed26dfefaaf4ef3d00958965575131f34c69c call \
 generate --src DIR_PATH
func (m *myModule) example(src *Directory) *File  {
	return dag.
			TerraformDocs().
			Generate(src)
}
@function
def example(src: dagger.Directory) -> dagger.File:
	return (
		dag.terraform_docs()
		.generate(src)
	)
@func()
example(src: Directory): File {
	return dag
		.terraformDocs()
		.generate(src)
}