Update Atmos YAML functions @aknysh (#1038)
what
- Handle environment variables (set in the
env
section) when running!terraform.output
andatmos.Component
- If
TF_DATA_DIR
environment variable is set, clear the correct environment folder when reseting Terraform workspaces - Additional logging for handling errors in terraform output
- Refactor the spinner logic
why
- If the component referred in
!terraform.output
andatmos.Component
functions sets environment variables (in theenv
section), set the environment variables in the process running!terraform.output
andatmos.Component
functions - Correctly handle the
TF_DATA_DIR
environment variable when reseting Terraform workspaces in the!terraform.output
andatmos.Component
functions - Additional logging for debugging
- Refactor the spinner logic - separate the spinner logic into reusable functions so it can be used in many commands