Dagger
Search

terraform-docs

This module has been generated via dagger init and serves as a reference to
basic module structure as you get started with Dagger.

Two functions have been pre-created. You can modify, delete, or add to them,
as needed. They demonstrate usage of arguments and return types using simple
echo and grep commands. The functions can be called from the dagger CLI or
from one of the SDKs.

The first line in this comment block is a short description line and the
rest is a long description with more detail on the module's purpose or usage,
if appropriate. All modules should have a short description.

Installation

dagger install gitlab.com/sflab1403/dagger-terraform-docs@v0.2.0

Entrypoint

Return Type
TerraformDocs !
Example
dagger -m gitlab.com/sflab1403/dagger-terraform-docs@143c1aa1ff30c0f59e95ecaae0d3db9e3a966520 call \
func (m *MyModule) Example() *dagger.TerraformDocs  {
	return dag.
			TerraformDocs()
}
@function
def example() -> dagger.TerraformDocs:
	return (
		dag.terraform_docs()
	)
@func()
example(): TerraformDocs {
	return dag
		.terraformDocs()
}

Types

TerraformDocs 🔗

printMessage() 🔗

Returns a container that echoes whatever string argument is provided

Return Type
String !
Arguments
NameTypeDefault ValueDescription
messageString !-No description provided
Example
dagger -m gitlab.com/sflab1403/dagger-terraform-docs@143c1aa1ff30c0f59e95ecaae0d3db9e3a966520 call \
 print-message --message string
func (m *MyModule) Example(ctx context.Context, message string) string  {
	return dag.
			TerraformDocs().
			PrintMessage(ctx, message)
}
@function
async def example(message: str) -> str:
	return await (
		dag.terraform_docs()
		.print_message(message)
	)
@func()
async example(message: string): Promise<string> {
	return dag
		.terraformDocs()
		.printMessage(message)
}