Commit Graph

37 Commits (fb24ad389c2019b4c8539d1c6d0d9f6d5c1d2777)

Author SHA1 Message Date
Lennart Spitzner fb24ad389c Fix eclipse behaviour when printing times 2023-02-21 20:27:59 +01:00
Lennart Spitzner 49ffea3f2e Implement filter for console escape codes (behind flag)
--filter-escape-sequences filters output from the subprocess
so that backspace is respected, color codes and cursor
movement get ignored. In general the subprocess should be
configured to produce plain output instead, though.
2023-02-20 18:22:37 +01:00
Lennart Spitzner ac6997be19 Show per-line wall clock info 2023-02-20 15:00:45 +01:00
Lennart Spitzner ca93157c6e Support second-level headers 2022-12-12 18:48:28 +01:00
Lennart Spitzner 8956098913 Support error-start/stop for capturing regex-matched error output 2022-12-12 17:10:17 +01:00
Lennart Spitzner 095eab90dc Support headers 2022-12-12 13:03:09 +01:00
Lennart Spitzner 33019050c5 Add more butcher docs 2022-12-08 18:13:13 +01:00
Lennart Spitzner 72d7a1d601 Capture per-line time taken, improve time output 2022-12-08 18:12:51 +01:00
Lennart Spitzner 0878254f71 Switch default behaviour: keep both stdout/stderr by default 2022-12-08 15:45:19 +01:00
Lennart Spitzner 26ae1fc40d Change flag semantics: match prefix by default
New variants summarize-any, skip-any, yield-any to match
anywhere in the input lines
2022-12-08 15:44:39 +01:00
Lennart Spitzner d8fa897a70 Support regexes via regex-pcre 2022-12-08 15:42:44 +01:00
Lennart Spitzner c3cc2e8170 Refactor from String to Text 2022-12-07 16:46:58 +01:00
Lennart Spitzner 86f952e572 hxbrief: Support --max-lines and Check non-overflow 2022-07-16 17:34:52 +02:00
Lennart Spitzner 338df579e9 hxbrief: Take into account env vars COLUMNS and LINES 2022-07-16 17:34:50 +02:00
Lennart Spitzner 103e7e9762 Fix problem with \r\n instead of \n causing output glitches 2022-03-18 13:38:00 +01:00
Lennart Spitzner 7105c6cd95 hxbrief: Support exact matches 2022-03-08 19:59:40 +00:00
Lennart Spitzner f4cde7248a hxbrief: Change output colouring (skipped lines) 2022-03-04 16:26:01 +00:00
Lennart Spitzner d6c797dc2e Write summary-line to stderr instead of stdout 2022-03-04 14:36:25 +00:00
Lennart Spitzner bb0417d2a3 Show label in summary, Shorten long command label, cleanup 2022-03-04 14:35:31 +00:00
Lennart Spitzner 78a32ebece Add some code comments 2022-03-04 14:34:32 +00:00
Lennart Spitzner b9f038b212 hxbrief: Implement --yield to keep pattern while dropping
This is similar to piping your output to grep, only
our patterns are much weaker (as of yet), you can see
the intermediate output, and you can also still tee the
whole (unfiltered) output to a file at the same time.
2022-02-25 09:44:35 +00:00
Lennart Spitzner 78ee1ecb3a hxbrief: Add --label to override command invocation string 2022-02-25 09:43:40 +00:00
Lennart Spitzner 3cacc98227 hxbrief: Implement --tee to write copy of all output to file 2022-02-25 09:42:45 +00:00
Lennart Spitzner 7e97c65716 hxbrief: Add flag "--omitSummary" to omit summary before exit 2022-02-24 19:00:09 +00:00
Lennart Spitzner 7ff33187c8 hxbrief: Fix child command argument passing
Previously, a child command like 'echo "foo; echo bar"' would
actually have invoked echo twice, because essentially the
quotation-marks got eated by our input parser. Not ideal.
2022-02-24 18:57:24 +00:00
Lennart Spitzner aabc498fdb Stop handling exception that we do not expect
Now that we guard via hSupportsANSI this is not
an exception that should occur. And if it occurs
we'd rather crash, as reading of stdin can be broken
after such an exception.
2022-02-09 21:35:49 +00:00
Lennart Spitzner 09c8e81095 Fix non-resetting console on user-interrupt 2022-02-08 15:32:40 +00:00
Lennart Spitzner 913916561c Support forwarding stdin (non-echoed) 2022-02-08 15:11:36 +00:00
Lennart Spitzner 1cb4dd2cb8 Implement "--skip" 2022-02-03 21:18:44 +00:00
Lennart Spitzner 09b7a05964 Fix missing color-reset in some summary lines 2022-02-03 21:18:44 +00:00
Lennart Spitzner 146d06845f Clean up code-comment about project todos 2022-02-03 21:18:05 +00:00
Lennart Spitzner 87647d8851 Make nested invocation harmless, inner call does nothing 2022-01-26 22:54:49 +00:00
Lennart Spitzner 8ca85432be Implement basic ctrl-c-handling 2022-01-26 22:12:51 +00:00
Lennart Spitzner dfad695899 Handle exception when our stdin gets closed immediately 2022-01-26 21:21:08 +00:00
Lennart Spitzner b58597e2e0 Sort imports properly 2022-01-26 21:19:21 +00:00
Lennart Spitzner 725dd6d80b Actually print help 2022-01-24 10:51:38 +00:00
Lennart Spitzner 5f2b4286ee initial commit 2022-01-24 10:20:13 +00:00