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" ,
2023-01-11 11:37:47 +03:00
Short : "Execute helper scripts to manage Hasura Projects" ,
2022-12-30 06:50:48 +03:00
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." ,
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
}