format

package
v0.0.33 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package format provides functions for formatting Terraform and cty as text. The implemenation comes from a modified version of the repl package in Terraform.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TerraformOutput

func TerraformOutput(out *pb.Terraform_Command_Output_Response_Meta, indent int) (string, error)

TerraformOutput takes a terraform executor output metadata and returns it as human friendly formatted string.

func Value

func Value(v cty.Value, indent int) string

Value formats a value in a way that resembles Terraform language syntax and uses the type conversion functions where necessary to indicate exactly what type it is given, so that equality test failures can be quickly understood.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL