forked from cerc-io/laconicd
Prathamesh Musale
fa5885b349
Reviewed-on: deep-stack/laconic2d#12 Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com> Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
16 lines
606 B
Go
16 lines
606 B
Go
package gql
|
|
|
|
import "github.com/spf13/cobra"
|
|
|
|
// AddGQLFlags adds gql flags for
|
|
func AddGQLFlags(cmd *cobra.Command) *cobra.Command {
|
|
// Add flags for GQL server.
|
|
cmd.PersistentFlags().Bool("gql-server", false, "Start GQL server.")
|
|
cmd.PersistentFlags().Bool("gql-playground", false, "Enable GQL playground.")
|
|
cmd.PersistentFlags().String("gql-playground-api-base", "", "GQL API base path to use in GQL playground.")
|
|
cmd.PersistentFlags().String("gql-port", "9473", "Port to use for the GQL server.")
|
|
cmd.PersistentFlags().String("log-file", "", "File to tail for GQL 'getLogs' API.")
|
|
|
|
return cmd
|
|
}
|