Skip to content

add a diff command to diff metadata on file and on server #3126

@shahidhk

Description

@shahidhk

Add a new command to the CLI which can be used to diff the metadata on the server with one that is available locally.

Usage:

# diff server and migrataions/metadata.yaml
hasura metadata diff

# diff server and <file>
hasura metadata diff --file <file>

# diff <file1> and <file2>
hasura metadata diff --file <file1> --file <file2>

--file flag should have a shorthand of -f

Here is a gist for implementing diff:
https://gist.github.com/shahidhk/f39bf76e5fdf1e7a364638de1d12114b

Metadata

Metadata

Assignees

No one assigned

    Labels

    c/cliRelated to CLIe/intermediatecan be wrapped up in a weekgood first issueGood for newcomershelp wantedGood candidate for contribution. Community help wanted!k/enhancementNew feature or improve an existing featurep/highcandidate for being included in the upcoming sprint

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions