remove emulator flag
@@ -58,7 +58,6 @@ type GlobalFlags struct {
Filter string
Format string
Save string
- RunEmulator bool
Host string
Log string
Network string
@@ -68,7 +67,6 @@ var flags = GlobalFlags{
Filter: "",
Format: "",
Save: "",
- RunEmulator: false,
Host: "",
Log: "info",
Network: "",
@@ -116,14 +114,6 @@ func InitFlags(cmd *cobra.Command) {
"Log level verbosity, values (none, error, debug)",
)
- cmd.PersistentFlags().BoolVarP(
- &flags.RunEmulator,
- "emulator",
- "e",
- flags.RunEmulator,
- "Run in-memory emulator",
- )
-
cmd.PersistentFlags().StringSliceVarP(
&util.ConfigPath,
"conf",
@@ -183,10 +173,7 @@ func (c Command) AddToParent(parent *cobra.Command) {
// createGateway creates a gateway to be used, defaults to grpc but can support others
func createGateway(host string) (gateway.Gateway, error) {
- // create in memory emulator client
- if flags.RunEmulator {
- return gateway.NewEmulatorGateway(), nil
- }
+ // TODO implement emulator gateway and check emulator flag here
// create default grpc client
return gateway.NewGrpcGateway(host)
