-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat[bmqstoragetool]: PrintManager #529
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Anton Pryakhin <[email protected]>
// class PrintManager | ||
// ================== | ||
|
||
class PrintManager { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would never call this interface PrintManager because its name is too abstract even for an interface :).
Consider something like MessagePrinter
or MessagePrinterStrategy
.
{"print-mode", | ||
"print mode", | ||
"can be one of the following: [HUMAN, JSON_PRETTY, JSON_LINE]. " | ||
"Defailt value is HUMAN", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Defailt value is HUMAN", | |
"Default value is HUMAN", |
@@ -57,6 +57,12 @@ parseArgs(CommandLineArguments& arguments, int argc, const char* argv[]) | |||
"path to a .bmq_csl file", | |||
balcl::TypeInfo(&arguments.d_cslFile), | |||
balcl::OccurrenceInfo::e_OPTIONAL}, | |||
{"print-mode", | |||
"print mode", | |||
"can be one of the following: [HUMAN, JSON_PRETTY, JSON_LINE]. " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the tool support lower-case values for this parameter? If not, it would be handy to have.
In order to make the output of the storagetool more grep-friendly or/and to be able to parse it the following changes have been done:
PrintManager
PrintManager
PrintManager
have been added:JsonLine
(each Record is printed as a single-line json) andJsonPretty
(each Record is printed as a multi-line json).Left to do:
SearchResultDecorators