MCPcopy
hub / github.com/dgraph-io/dgraph / Execute

Function Execute

graphql/testdata/datagen/cmd/root.go:51–56  ·  view source on GitHub ↗

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

()

Source from the content-addressed store, hash-verified

49// Execute adds all child commands to the root command and sets flags appropriately.
50// This is called by main.main(). It only needs to happen once to the rootCmd.
51func Execute() {
52 if err := rootCmd.Execute(); err != nil {
53 fmt.Println(err)
54 os.Exit(1)
55 }
56}
57
58func init() {
59 cobra.OnInitialize(initConfig)

Callers 1

mainFunction · 0.92

Calls 1

ExecuteMethod · 0.65

Tested by

no test coverage detected