graphql-engine/cli/commands/scripts.go
2023-01-11 08:39:18 +00:00

22 lines
660 B
Go

package commands
import (
"github.com/hasura/graphql-engine/cli/v2"
"github.com/spf13/cobra"
)
// NewScriptsCmd returns the scripts command
func NewScriptsCmd(ec *cli.ExecutionContext) *cobra.Command {
scriptsCmd := &cobra.Command{
Use: "scripts",
Short: "Execute helper scripts to manage Hasura Projects",
Long: "The scripts command offers a set of helper scripts to manage a Hasura project's configuration settings. This is used when upgrading between `v1`, `v2`, or `v3` configs.",
SilenceUsage: true,
}
scriptsCmd.AddCommand(
newScriptsUpdateConfigV2Cmd(ec),
newUpdateMultipleSources(ec),
)
return scriptsCmd
}