2019-12-25 11:33:06 +03:00
|
|
|
package commands
|
|
|
|
|
|
|
|
import (
|
2021-06-16 14:44:15 +03:00
|
|
|
"github.com/hasura/graphql-engine/cli/v2"
|
2019-12-25 11:33:06 +03:00
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
|
|
|
func newMetadataInconsistencyCmd(ec *cli.ExecutionContext) *cobra.Command {
|
|
|
|
metadataInconsistencyCmd := &cobra.Command{
|
|
|
|
Use: "inconsistency",
|
2021-03-15 18:40:52 +03:00
|
|
|
Short: "Manage inconsistent objects in Hasura metadata",
|
2019-12-25 11:33:06 +03:00
|
|
|
Aliases: []string{"inconsistencies", "ic"},
|
|
|
|
SilenceUsage: true,
|
|
|
|
}
|
|
|
|
|
|
|
|
metadataInconsistencyCmd.AddCommand(
|
|
|
|
newMetadataInconsistencyListCmd(ec),
|
|
|
|
newMetadataInconsistencyDropCmd(ec),
|
|
|
|
newMetadataInconsistencyStatusCmd(ec),
|
|
|
|
)
|
|
|
|
return metadataInconsistencyCmd
|
|
|
|
}
|