hcledit icon indicating copy to clipboard operation
hcledit copied to clipboard

Add exit codes to get commands

Open miguelgmcs opened this issue 2 years ago • 0 comments

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 :)

miguelgmcs avatar Sep 20 '22 10:09 miguelgmcs