Skip to content

Refactor and Improve CLI Functionality #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Mar 28, 2025
Merged

Refactor and Improve CLI Functionality #13

merged 13 commits into from
Mar 28, 2025

Conversation

wenwu35
Copy link
Collaborator

@wenwu35 wenwu35 commented Mar 28, 2025

PR Summary:

This PR introduces several enhancements and refactors to the CLI tools dbt_column_lineage_direct and dbt_column_lineage_recursive to improve usability, error handling, and output clarity.

dbt_column_lineage_direct:

  • Removes the --show-ui flag. The output is now handled consistently via logging.
  • Improves the scanning process by providing progress updates, indicating the total number of models scanned

dbt_column_lineage_recursive:

  • Modifies the behavior of multiple match display. It now only shows multiple match suggestions when an exact node name match is found, reducing unnecessary verbosity.
  • Adds alerts or warnings to the console when a specified model or column is not found, providing better feedback to the user.
  • Removes self-referencing relationships from the Mermaid diagrams generated, resulting in cleaner and more accurate visualizations.

These changes collectively enhance the user experience by providing more informative output, clearer error messages, and more precise lineage analysis.

@wenwu35 wenwu35 changed the title Feature improve cli Refactor and Improve CLI Functionality Mar 28, 2025
@wenwu35 wenwu35 merged commit 0358f81 into main Mar 28, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant