mirror of
https://github.com/hasura/graphql-engine.git
synced 2025-01-05 22:34:22 +03:00
parent
9fe6070663
commit
094bbc8760
@ -12,6 +12,7 @@ import (
|
|||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
|
|
||||||
mig "github.com/hasura/graphql-engine/cli/migrate/cmd"
|
mig "github.com/hasura/graphql-engine/cli/migrate/cmd"
|
||||||
@ -51,6 +52,9 @@ func newMigrateSquashCmd(ec *cli.ExecutionContext) *cobra.Command {
|
|||||||
f.String("access-key", "", "access key for Hasura GraphQL Engine")
|
f.String("access-key", "", "access key for Hasura GraphQL Engine")
|
||||||
f.MarkDeprecated("access-key", "use --admin-secret instead")
|
f.MarkDeprecated("access-key", "use --admin-secret instead")
|
||||||
|
|
||||||
|
// mark flag as required
|
||||||
|
migrateSquashCmd.MarkFlagRequired("from")
|
||||||
|
|
||||||
// need to create a new viper because https://github.com/spf13/viper/issues/233
|
// need to create a new viper because https://github.com/spf13/viper/issues/233
|
||||||
v.BindPFlag("endpoint", f.Lookup("endpoint"))
|
v.BindPFlag("endpoint", f.Lookup("endpoint"))
|
||||||
v.BindPFlag("admin_secret", f.Lookup("admin-secret"))
|
v.BindPFlag("admin_secret", f.Lookup("admin-secret"))
|
||||||
|
Loading…
Reference in New Issue
Block a user