Goby3  3.1.5a
2024.05.23
log.proto
Go to the documentation of this file.
1 syntax = "proto2";
2 import "goby/middleware/protobuf/app_config.proto";
3 import "goby/protobuf/option_extensions.proto";
4 
5 package goby.apps.middleware.protobuf;
6 
7 message UnifiedLogToolConfig
8 {
9  option (goby.msg).cfg.tool = {
10  is_tool: true
11  has_subtools: true
12  has_help_action: true
13  };
14 
15  optional goby.middleware.protobuf.AppConfig app = 1
16  [(goby.field) = { cfg { action: DEVELOPER } }];
17 
18  enum Action
19  {
20  help = 0 [(goby.ev).cfg = {
21  short_help_msg: "Print usage information",
22  full_help_msg: "Usage: \"goby log help [action]\""
23  }];
24  convert = 1 [(goby.ev).cfg = {
25  short_help_msg: "Convert .goby log files to other formats",
26  external_command: "goby_log_tool"
27  }];
28  }
29  optional Action action = 2 [
30  default = help,
31  (goby.field) = {
32  description: "The action this tool should take [can omit --action if 1st parameter]",
33  cfg { position: { enable: true }, cli_short: "A", action: HIDDEN }
34  }
35  ];
36 }