it seems that HCL2 has a type annotation parser but no writer
but it is not true.
I found typeexpr.TypeString(cty.Type) in HCL2 and we should use it.
TypeString returns a string without space.
If a type name contains object type, its length may be long. It’ s hard to read with table mode.
So we add a space to the type name so that tablewriter can break it into lines.
Fixes #18
In #16, I said
but it is not true. I found typeexpr.TypeString(cty.Type) in HCL2 and we should use it.
TypeString returns a string without space. If a type name contains object type, its length may be long. It’ s hard to read with table mode. So we add a space to the type name so that tablewriter can break it into lines.