NickLarsenNZ / terrain

List Hashicorp Terraform resources, datasources, variables, and more to automate documentation of Infrastructure as Code
1 stars 1 forks source link

CLI flags to choose what to show #18

Open NickLarsenNZ opened 5 years ago

NickLarsenNZ commented 5 years ago

For what to print:

Short flag Long flag Terraform Definition
-r --resources tfconfig.Module.ManagedResources
-d --data, --datasources tfconfig.Module.DataResources
-p --providers tfconfig.Module.RequiredProviders
-m --modules tfconfig.Module.ModuleCalls
-v --variables tfconfig.Module.Variables
-o --outputs tfconfig.Module.Outputs

And the output format -f or --format being one of (markdown (default), json, yaml):

NickLarsenNZ commented 5 years ago

Consider diffing configs. Might need commands:

The flags above should apply to both: terrain diff, terrain show