2020-02-24 19:14:46 +03:00
|
|
|
package commands
|
|
|
|
|
|
|
|
import (
|
2021-06-16 14:44:15 +03:00
|
|
|
"github.com/hasura/graphql-engine/cli/v2"
|
2020-02-24 19:14:46 +03:00
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
|
|
|
// NewScriptsCmd returns the scripts command
|
|
|
|
func NewScriptsCmd(ec *cli.ExecutionContext) *cobra.Command {
|
|
|
|
scriptsCmd := &cobra.Command{
|
|
|
|
Use: "scripts",
|
2021-03-15 18:40:52 +03:00
|
|
|
Short: "Execute helper scripts to manage Hasura projects",
|
2020-02-24 19:14:46 +03:00
|
|
|
SilenceUsage: true,
|
|
|
|
}
|
|
|
|
scriptsCmd.AddCommand(
|
|
|
|
newScriptsUpdateConfigV2Cmd(ec),
|
2021-01-18 20:11:05 +03:00
|
|
|
newUpdateMultipleSources(ec),
|
2020-02-24 19:14:46 +03:00
|
|
|
)
|
|
|
|
return scriptsCmd
|
|
|
|
}
|