fix(client/v2): fix duplicate modules addition and add logger (#17390)
This commit is contained in:
@@ -18,9 +18,6 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
|
||||
PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "invariant_module_name"}, {ProtoField: "invariant_route"}},
|
||||
},
|
||||
},
|
||||
SubCommands: map[string]*autocliv1.ServiceCommandDescriptor{
|
||||
"v1beta1": {Service: crisisv1beta1.Msg_ServiceDesc.ServiceName},
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
+6
-2
@@ -93,7 +93,9 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
|
||||
},
|
||||
// map v1beta1 as a sub-command
|
||||
SubCommands: map[string]*autocliv1.ServiceCommandDescriptor{
|
||||
"v1beta1": {Service: govv1beta1.Query_ServiceDesc.ServiceName},
|
||||
"v1beta1": {
|
||||
Service: govv1beta1.Query_ServiceDesc.ServiceName,
|
||||
},
|
||||
},
|
||||
EnhanceCustomCommand: true, // We still have manual commands in gov that we want to keep
|
||||
},
|
||||
@@ -101,7 +103,9 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
|
||||
Service: govv1.Msg_ServiceDesc.ServiceName,
|
||||
// map v1beta1 as a sub-command
|
||||
SubCommands: map[string]*autocliv1.ServiceCommandDescriptor{
|
||||
"v1beta1": {Service: govv1beta1.Msg_ServiceDesc.ServiceName},
|
||||
"v1beta1": {
|
||||
Service: govv1beta1.Msg_ServiceDesc.ServiceName,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user