Skip to content
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

feat: ftl schema diff #2043

Merged
merged 1 commit into from
Jul 11, 2024
Merged

feat: ftl schema diff #2043

merged 1 commit into from
Jul 11, 2024

Conversation

gak
Copy link
Contributor

@gak gak commented Jul 11, 2024

Fixes #1989

ftl schema diff --help
Usage: ftl schema diff <other-endpoint> [flags]

Print any schema differences between this cluster and another cluster. Returns
an exit code of 1 if there are differences.

Arguments:
  <other-endpoint>    Other endpoint URL to compare against.

  --endpoint=http://127.0.0.1:8892     FTL endpoint to bind/connect to ($FTL_ENDPOINT).
  --color    Enable colored output regardless of TTY.
  • Compares <other-endpoint> vs --endpoint into a unified diff with color.
  • Exits with 1 if there is a difference.
  • Detects tty and will not emit ANSI unless --color is passed in.
image

@gak gak self-assigned this Jul 11, 2024
@gak gak requested a review from alecthomas as a code owner July 11, 2024 02:00
@gak gak requested review from a team and worstell and removed request for a team July 11, 2024 02:00
@ftl-robot ftl-robot mentioned this pull request Jul 11, 2024
@gak gak requested a review from safeer July 11, 2024 02:07
@worstell
Copy link
Contributor

worstell commented Jul 11, 2024

awesome!

(oof sorry i accidentally closed, meant to approve 😅)

@worstell worstell closed this Jul 11, 2024
@worstell worstell reopened this Jul 11, 2024
@gak gak merged commit 09bfe4b into main Jul 11, 2024
101 of 102 checks passed
@gak gak deleted the gak/schema-diff branch July 11, 2024 21:22
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.

ftl schema diff - diff local schema against a cluster
2 participants