@@ -223,7 +223,7 @@ void TCommandDescribe::Config(TConfig& config) {
223
223
config.Opts ->AddLongOption (" partition-stats" , " [Table|Topic|Consumer] Show partition statistics" ).StoreTrue (&ShowPartitionStats);
224
224
225
225
AddDeprecatedJsonOption (config, " (Deprecated, will be removed soon. Use --format option instead) [Table] Output in json format" );
226
- AddFormats (config, { EOutputFormat ::Pretty, EOutputFormat ::ProtoJsonBase64 });
226
+ AddOutputFormats (config, { EDataFormat ::Pretty, EDataFormat ::ProtoJsonBase64 });
227
227
config.Opts ->MutuallyExclusive (" json" , " format" );
228
228
229
229
config.SetFreeArgsNum (1 );
@@ -940,7 +940,7 @@ int TCommandDescribe::PrintConsumerResponsePretty(const NYdb::NTopic::TConsumerD
940
940
}
941
941
942
942
void TCommandDescribe::WarnAboutTableOptions () {
943
- if (ShowKeyShardBoundaries || ShowStats || ShowPartitionStats || OutputFormat != EOutputFormat ::Default) {
943
+ if (ShowKeyShardBoundaries || ShowStats || ShowPartitionStats || OutputFormat != EDataFormat ::Default) {
944
944
TVector<TString> options;
945
945
if (ShowKeyShardBoundaries) {
946
946
options.emplace_back (" \" partition-boundaries\" (\" shard-boundaries\" )" );
@@ -951,7 +951,7 @@ void TCommandDescribe::WarnAboutTableOptions() {
951
951
if (ShowPartitionStats) {
952
952
options.emplace_back (" \" partition-stats\" " );
953
953
}
954
- if (OutputFormat != EOutputFormat ::Default) {
954
+ if (OutputFormat != EDataFormat ::Default) {
955
955
options.emplace_back (" \" json\" " );
956
956
}
957
957
Cerr << " Note: \" " << Path << " \" is not a table. Option" ;
@@ -986,7 +986,7 @@ void TCommandList::Config(TConfig& config) {
986
986
.StoreTrue (&FromNewLine);
987
987
config.Opts ->AddCharOption (' m' , " Multithread recursive request" )
988
988
.StoreTrue (&Multithread);
989
- AddFormats (config, { EOutputFormat ::Pretty, EOutputFormat ::Json });
989
+ AddOutputFormats (config, { EDataFormat ::Pretty, EDataFormat ::Json });
990
990
config.SetFreeArgsMax (1 );
991
991
SetFreeArgTitle (0 , " <path>" , " Path to list" );
992
992
}
@@ -1013,15 +1013,15 @@ int TCommandList::Run(TConfig& config) {
1013
1013
std::unique_ptr<ISchemePrinter> printer;
1014
1014
1015
1015
switch (OutputFormat) {
1016
- case EOutputFormat ::Default:
1017
- case EOutputFormat ::Pretty:
1016
+ case EDataFormat ::Default:
1017
+ case EDataFormat ::Pretty:
1018
1018
if (AdvancedMode) {
1019
1019
printer = std::make_unique<TTableSchemePrinter>(driver, std::move (settings));
1020
1020
} else {
1021
1021
printer = std::make_unique<TDefaultSchemePrinter>(driver, std::move (settings));
1022
1022
}
1023
1023
break ;
1024
- case EOutputFormat ::Json:
1024
+ case EDataFormat ::Json:
1025
1025
{
1026
1026
printer = std::make_unique<TJsonSchemePrinter>(driver, std::move (settings), AdvancedMode);
1027
1027
break ;
0 commit comments