From 67e3530d16cc32d58c18c35d9880e4d2c965dc51 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 2 Mar 2020 11:29:28 -0500 Subject: [PATCH 1/2] Add group count to collate Feature request to offer the ability to count output groups rather than actually show output groups. --- confluent_client/bin/collate | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/confluent_client/bin/collate b/confluent_client/bin/collate index 45cc5f69..7d670390 100755 --- a/confluent_client/bin/collate +++ b/confluent_client/bin/collate @@ -43,6 +43,8 @@ argparser.add_option('-d', '--diff', action='store_true', 'output group and others') argparser.add_option('-w', '--watch', action='store_true', help='Show intermediate results while running') +argparser.add_option('-g', '--groupcount', action='store_true', + help='Show count of output groups rather than the actual output') argparser.add_option('-s', '--skipcommon', action='store_true', help='Do not print most common result, only non modal ' 'groups, useful when combined with -d') @@ -69,6 +71,9 @@ def print_current(): if options.diff: grouped.print_deviants(skipmodal=options.skipcommon, count=options.count, reverse=options.reverse, basenode=options.base) + elif options.groupcount: + grouped.generate_byoutput() + print(len(grouped.byoutput)) else: grouped.print_all(skipmodal=options.skipcommon, count=options.count, From 634e5a8944c697bc59ba042e74646520935e2014 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 2 Mar 2020 13:15:09 -0500 Subject: [PATCH 2/2] Update gitignore --- .gitignore | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 485dee64..574b770a 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ -.idea +*.pyc +.*. +confluent_client/man/man* +.*.sw*