mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 01:12:56 +03:00
20 lines
437 B
Go
20 lines
437 B
Go
|
package commands
|
||
|
|
||
|
import (
|
||
|
"github.com/hasura/graphql-engine/cli"
|
||
|
"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",
|
||
|
SilenceUsage: true,
|
||
|
}
|
||
|
scriptsCmd.AddCommand(
|
||
|
newScriptsUpdateConfigV2Cmd(ec),
|
||
|
)
|
||
|
return scriptsCmd
|
||
|
}
|