From c8ab90bf8dcba5fe44a04fdcf121c57a4944f27d Mon Sep 17 00:00:00 2001 From: Andinus Date: Thu, 29 Jul 2021 19:54:30 +0530 Subject: Add latest implementation - Switched to Text::Table::Simple. - Faster and simpler than Terminal::Table. - Uses Promises/race to process data. --- lib/Lacerta/CLI.rakumod | 113 ++++++++++++++++++++++++++---------------------- 1 file changed, 62 insertions(+), 51 deletions(-) diff --git a/lib/Lacerta/CLI.rakumod b/lib/Lacerta/CLI.rakumod index d6b80bc..3ce42b0 100644 --- a/lib/Lacerta/CLI.rakumod +++ b/lib/Lacerta/CLI.rakumod @@ -1,12 +1,15 @@ -use Terminal::Table; use Terminal::Spinners; +use Text::Table::Simple; -# Parses the WhatsApp logs. +#| parses WhatsApp export +unit sub MAIN ( + Str $input where *.IO.f = "input", #= input log file to parse + Str $profile-name = "Andinus", #= your WhatsApp profile name +); + +#| Parses the WhatsApp logs. grammar WhatsApp { - token TOP { - || - || - } + token TOP { || } token Notice { ', '