From 68dbd625bd57f48cc8936743d7ab199a2810300f Mon Sep 17 00:00:00 2001 From: Andinus Date: Sat, 14 Aug 2021 22:24:40 +0530 Subject: Add option for number of Most Spoken Columns --- README | 13 +++++++++++++ README.org | 9 +++++++++ lib/Lacerta/CLI.rakumod | 2 +- 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/README b/README index b4aa110..e1d87ca 100644 --- a/README +++ b/README @@ -140,6 +140,13 @@ profile-name and /Deleted/ column. +no-of-spoken +╌╌╌╌╌╌╌╌╌╌╌╌ + + This sets the number of Most Spoken columns to be printed for each + user. The default is 3. + + Caveats ─────── @@ -151,6 +158,12 @@ Caveats News ════ +v0.1.1 - 2021-08-14 +─────────────────── + + ⁃ Add option for number of Most Spoken columns. + + v0.1.0 - 2021-07-29 ─────────────────── diff --git a/README.org b/README.org index cc1e93c..4c15213 100644 --- a/README.org +++ b/README.org @@ -99,6 +99,11 @@ Exported WhatsApp log. Your WhatsApp profile name. This is required to get stats for /Left/ and /Deleted/ column. +*** no-of-spoken + +This sets the number of Most Spoken columns to be printed for each user. +The default is 3. + ** Caveats /Words/ count can be less than the actual count. If the message contains @@ -107,6 +112,10 @@ line, so it'll miss parts of messages with newline in them. * News +** v0.1.1 - 2021-08-14 + ++ Add option for number of Most Spoken columns. + ** v0.1.0 - 2021-07-29 Initial Implementation. diff --git a/lib/Lacerta/CLI.rakumod b/lib/Lacerta/CLI.rakumod index ad52e0c..c096866 100644 --- a/lib/Lacerta/CLI.rakumod +++ b/lib/Lacerta/CLI.rakumod @@ -8,6 +8,7 @@ proto MAIN(|) is export {unless so @*ARGS {put $*USAGE; exit}; {*}} multi sub MAIN( Str $input where *.IO.f = "input", #= input log file to parse Str :$profile-name = "Andinus", #= your WhatsApp profile name + Int :$no-of-spoken = 3, #= number of Most Spoken columns ) is export { #| Parses the WhatsApp logs. grammar WhatsApp { @@ -34,7 +35,6 @@ multi sub MAIN( my List @data; my List @given-data; my List @most-spoken-data; - my Int $no-of-spoken = 8; $timed = now; Spinner.new(:type).await: Promise.start: { -- cgit 1.4.1-2-gfad0