2 import "goby/middleware/protobuf/app_config.proto";
3 import "goby/protobuf/option_extensions.proto";
5 package goby.apps.middleware.protobuf;
7 message ProtobufToolConfig
9 option (goby.msg).cfg.tool = {
15 optional goby.middleware.protobuf.AppConfig app = 1
16 [(goby.field) = { cfg { action: DEVELOPER } }];
20 help = 0 [(goby.ev).cfg = {
21 short_help_msg: "Print usage information",
22 full_help_msg: "Usage: \"goby protobuf help [action]\""
24 show = 1 [(goby.ev).cfg = {
25 short_help_msg: "Display definition for message",
28 optional Action action = 2 [
31 description: "The action this tool should take [can omit --action if 1st parameter]",
32 cfg { position: { enable: true }, cli_short: "A", action: HIDDEN }
37 message ProtobufShowToolConfig
39 option (goby.msg).cfg.tool = {
42 has_help_action: false
45 optional goby.middleware.protobuf.AppConfig app = 1
46 [(goby.field) = { cfg { action: DEVELOPER } }];
48 repeated string name = 2 [(goby.field) = {
49 description: "Protobuf name for message to show.",
50 cfg { position: { enable: true max_count: -1 }, cli_short: "n" }
53 optional string package_name = 3 [(goby.field) = {
54 description: "Common protobuf package (namespace) to prepend to 'name'",
55 cfg { cli_short: "p" }
58 repeated string load_shared_library = 10 [(goby.field) = {
59 description: "Load this shared library containing compiled Protobuf/DCCL messages.",
60 cfg { cli_short: "l" env: "GOBY_TOOL_LOAD_SHARED_LIBRARY" }