TobikoData / sqlmesh

Efficient data transformation and modeling framework that is backwards compatible with dbt.
https://sqlmesh.com
Apache License 2.0
1.83k stars 161 forks source link

Chore: Simplify the output of the info command #3409

Closed izeigerman closed 2 days ago

izeigerman commented 2 days ago

Only print the connection config when in verbose model.

Default output:

$ sqlmesh info
`physical_schema_override` is deprecated. Please use `physical_schema_mapping` instead
Models: 17
Macros: 6
Data warehouse connection succeeded

Verbose:

$ sqlmesh info -v
Models: 17
Macros: 6

Connection:
  type: duckdb
  concurrent_tasks: 1
  register_comments: true
  pre_ping: false
  extensions: []
  connector_config: {}

Test Connection:
  type: duckdb
  concurrent_tasks: 1
  register_comments: true
  pre_ping: false
  extensions: []
  connector_config: {}

Data warehouse connection succeeded

Skip connection:

$ sqlmesh info --skip-connection
Models: 17
Macros: 6