If I run this command on my terminal (https://hub.getdbt.com/dbt-labs/codegen/latest/):
dbt run-operation generate_model_yaml --args "{\"model_name\": "bookings"}"
I get an output that looks like this:
12:53:32 Running with dbt=1.0.1
12:53:34 version: 2
models:
- name: bookings
description: ""
columns:
- name: booking_id
description: ""
- name: masterclient_id
description: ""
I want to save it to a file. If I do this:
dbt run-operation generate_model_yaml --args "{\"model_name\": "bookings"}" > test.yml
this also gets saved to the output:
12:53:32 Running with dbt=1.0.1
12:53:34
While my desired output is just this:
version: 2
models:
- name: bookings
description: ""
columns:
- name: booking_id
description: ""
- name: masterclient_id
description: ""
How can I get rid of the extra time stamp info in the beginning and then save the remaining output in a file?