hcledit
hcledit copied to clipboard
Add exit codes to get commands
It would be nice to have exit codes to the get
commands based on the matching like grep does.
$ hcledit block get module.namespace -f main.tf
module "namespace" {
source = "[email protected]:xxxxxxxxx/platform_terraform_modules.git//k8s/namespace?ref=7.15.2"
project_name = var.project_name
env = var.environment
region = var.region
owners = var.owners
}
$ echo $?
0
$ hcledit block get module.namasdfasdfasdespace -f main.tf
$ echo $?
0
Thank you :)