Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
simonharrer committed Sep 21, 2023
1 parent 3873905 commit a47c515
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ func main() {
return Open(ctx.String("file"), dataContractStudioUrl)
},
}, {
Name: "check-compatibility",
Usage: "EXPERIMENTAL - determine whether changes are backwards compatible",
Name: "diff",
Usage: "EXPERIMENTAL - diff two data contracts",
Flags: []cli.Flag{
fileNameFlag,
&cli.StringFlag{
Expand All @@ -100,7 +100,22 @@ func main() {
},
},
Action: func(ctx *cli.Context) error {
fmt.Println("Command `check-compatibility` not implemented yet!")
fmt.Println("Command `diff` not implemented yet!")
return nil
},
}, {
Name: "breaking",
Usage: "EXPERIMENTAL - detect breaking changes between two data contracts",
Flags: []cli.Flag{
fileNameFlag,
&cli.StringFlag{
Name: "with",
Required: true,
Usage: "url of the other version of the data contract",
},
},
Action: func(ctx *cli.Context) error {
fmt.Println("Command `breaking` not implemented yet!")
return nil
},
},
Expand Down

0 comments on commit a47c515

Please sign in to comment.