gruntwork-io / terragrunt

Terragrunt is a flexible orchestration tool that allows Infrastructure as Code written in OpenTofu/Terraform to scale.
https://terragrunt.gruntwork.io/
MIT License
8.09k stars 981 forks source link

Directly Forward Logs for `version` command #3390

Closed yhakbar closed 2 months ago

yhakbar commented 2 months ago

Describe the bug

Automatically enable terragrunt-forward-tf-stdout for version command.

Users might programmatically parse the output of the command, and it's not super helpful here.

Steps To Reproduce

Run terragrunt version:

$ terragrunt version 2>/dev/null
16:54:03.619 STDOUT tofu: OpenTofu v1.6.2
16:54:03.619 STDOUT tofu: on darwin_arm64
16:54:03.619 STDOUT tofu: + provider registry.opentofu.org/hashicorp/aws v5.57.0
16:54:03.619 STDOUT tofu: + provider registry.opentofu.org/hashicorp/helm v2.5.1
16:54:03.619 STDOUT tofu: + provider registry.opentofu.org/hashicorp/tls v4.0.5

Expected behavior

Log enrichment doesn't happen for the version command, just like it doesn't for the output command.

Nice to haves

Versions

levkohimins commented 2 months ago

Resolved in v0.67.5 release.