graphql-engine/cli/commands/metadata_inconsistency.go

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
857 B
Go
Raw Normal View History

package commands
import (
"github.com/hasura/graphql-engine/cli/v2"
"github.com/spf13/cobra"
)
func newMetadataInconsistencyCmd(ec *cli.ExecutionContext) *cobra.Command {
metadataInconsistencyCmd := &cobra.Command{
Use: "inconsistency",
Short: "Manage inconsistent objects in the Hasura Metadata",
Long: "This command, when used with subcommands, can be used to manage inconsistent objects in Hasura metadata. Options include:\n\n `hasura metadata inconsistency list`, `hasura metadata inconsistency delete`, `hasura metadata inconsistency status`",
Aliases: []string{"inconsistencies", "ic"},
SilenceUsage: true,
}
metadataInconsistencyCmd.AddCommand(
newMetadataInconsistencyListCmd(ec),
newMetadataInconsistencyDropCmd(ec),
newMetadataInconsistencyStatusCmd(ec),
)
return metadataInconsistencyCmd
}