mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-14 17:02:49 +03:00
8cee3c53b9
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7492 GitOrigin-RevId: 5b76d0a970193da4412ff1b595caec23996f265c
22 lines
660 B
Go
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
|
|
}
|