Sharif Haason
|
767740865f
|
Update predicate for default_value_if
|
2022-11-18 19:22:24 +01:00 |
|
Sharif Haason
|
1fb324f411
|
Use ArgAction for flags
|
2022-11-18 19:22:24 +01:00 |
|
Sharif Haason
|
3d0bc3d0eb
|
Replace 'value_of with get_one::<String>`
|
2022-11-18 19:22:24 +01:00 |
|
Sharif Haason
|
8a52261a50
|
Replace possible_values with value_parser
|
2022-11-18 19:22:24 +01:00 |
|
Sharif Haason
|
ccc4fb9ba9
|
Replace takes_value with num_args
|
2022-11-18 19:22:24 +01:00 |
|
Sharif Haason
|
0baa22f152
|
DeriveDisplayOrder now default
|
2022-11-18 19:22:24 +01:00 |
|
Sharif Haason
|
165ced9307
|
Update to clap 4.0
|
2022-11-18 19:22:24 +01:00 |
|
Sharif Haason
|
0caab15255
|
Document the main loop
|
2022-11-13 22:15:41 +01:00 |
|
Sharif Haason
|
828fb210ce
|
Use repeat byte when discovering squeeze
|
2022-11-13 22:15:41 +01:00 |
|
Sharif Haason
|
1e43783616
|
Clean up flags for ergonomics
|
2022-11-13 22:15:41 +01:00 |
|
Sharif Haason
|
6b7cfefec6
|
Use repeated byte optimization on nonzero bytes
|
2022-11-13 22:15:41 +01:00 |
|
Sharif Haason
|
5f82942f98
|
Add second check if read fails unexpectedly
|
2022-11-13 22:15:41 +01:00 |
|
Sharif Haason
|
f6a1c4e8e3
|
Add unit tests for new implementation of squeeze
|
2022-11-13 22:15:41 +01:00 |
|
Sharif Haason
|
b4fb1b079c
|
Print last line only when squeezed
|
2022-11-13 22:15:41 +01:00 |
|
Sharif Haason
|
f9f59d653d
|
Print asterisk when no position panel
|
2022-11-13 22:15:41 +01:00 |
|
Sharif Haason
|
c82695f0a9
|
Fix incomplete line ending when squeezed
|
2022-11-13 22:15:41 +01:00 |
|
Sharif Haason
|
9d938b11ed
|
Remove unnecessary ending case (covered by next)
|
2022-11-13 22:15:41 +01:00 |
|
Sharif Haason
|
d5982c0eb0
|
Optimize line check when squeezing zero bytes
|
2022-11-13 22:15:41 +01:00 |
|
Sharif Haason
|
1502419ad4
|
Document byte_hex_panel_g
|
2022-11-13 22:15:41 +01:00 |
|
Sharif Haason
|
f5be845d70
|
Satisfy clippy
|
2022-11-13 22:15:41 +01:00 |
|
Sharif Haason
|
664025477b
|
Alter when position panel is called
|
2022-11-13 22:15:41 +01:00 |
|
Sharif Haason
|
074bc791c2
|
Fix incomplete line ending
|
2022-11-13 22:15:41 +01:00 |
|
Sharif Haason
|
77a4ad25f1
|
Remove unnecessary import
|
2022-11-13 22:15:41 +01:00 |
|
Sharif Haason
|
ca31d466ba
|
Keep newline consistent
|
2022-11-13 22:15:41 +01:00 |
|
Sharif Haason
|
945e7a3472
|
Remove unnecessary squeezer module
|
2022-11-13 22:15:41 +01:00 |
|
Sharif Haason
|
75d612ff11
|
Alter newline usage
|
2022-11-13 22:15:41 +01:00 |
|
Sharif Haason
|
15e8abfc9a
|
Complete architectural rewrite (intentionally fails)
|
2022-11-13 22:15:41 +01:00 |
|
Sharif Haason
|
b36d74ed9d
|
Track squeeze_byte correctly
|
2022-11-13 22:15:41 +01:00 |
|
Sharif Haason
|
094bf63f02
|
Eliminate unnecessary call to active
|
2022-11-13 22:15:41 +01:00 |
|
Sharif Haason
|
e0e870de27
|
Store squeezed byte instead of pushing to vector
|
2022-11-13 22:15:41 +01:00 |
|
Sharif Haason
|
966421c522
|
Undo inlining to satisfy MSRV
|
2022-11-13 22:15:41 +01:00 |
|
Sharif Haason
|
166c2cc46b
|
Inline StdoutLock variable
|
2022-11-13 22:15:41 +01:00 |
|
Sharif Haason
|
74a5e4bc84
|
Print first line always
|
2022-11-13 22:15:41 +01:00 |
|
Sharif Haason
|
363ea0a586
|
Undo perf regression on squeezer
|
2022-11-13 22:15:41 +01:00 |
|
Sharif Haason
|
1c4c7ed9a5
|
Satisfy clippy
|
2022-11-13 22:15:41 +01:00 |
|
Sharif Haason
|
b5c224c119
|
Fix for no position panel
|
2022-11-13 22:15:41 +01:00 |
|
Sharif Haason
|
d6e34d9dd2
|
Fix issues with hello_world_elf64
|
2022-11-13 22:15:41 +01:00 |
|
Sharif Haason
|
1cb346bd13
|
Fixes --no-characters causes output artifacts when squeezing lines #171
|
2022-11-13 22:15:41 +01:00 |
|
Sharif Haason
|
daa40900bd
|
Fix char panel showing even if disabled
|
2022-11-13 22:15:41 +01:00 |
|
Sharif Haason
|
d98c6edb55
|
Fix overflow when printing without char panel
|
2022-11-13 22:15:41 +01:00 |
|
Sharif Haason
|
73bfc68cd0
|
cargo fmt
|
2022-11-13 22:15:41 +01:00 |
|
Sharif Haason
|
5d3f36d066
|
Remove write! formatting from hot loop
|
2022-11-13 22:15:41 +01:00 |
|
Sharif Haason
|
d214bc63f1
|
Precalculate position formatting in Printer state
|
2022-11-13 22:15:41 +01:00 |
|
Sharif Haason
|
a6aeabfde4
|
Refactor code to replace manual buffering with BufReader and BufWriter
|
2022-11-13 22:15:41 +01:00 |
|
Sharif Haason
|
9602667991
|
Rename with_panels to num_panels
|
2022-10-04 18:09:47 +02:00 |
|
Sharif Haason
|
9ccf18f4c0
|
Update CHANGELOG.md with PrinterBuilder
|
2022-10-04 18:09:47 +02:00 |
|
Sharif Haason
|
aa921ca184
|
Rename with_squeeze to enable_squeezing
|
2022-10-04 18:09:47 +02:00 |
|
Sharif Haason
|
4823523b7d
|
Remove superfluous with_writer function
|
2022-10-04 18:09:47 +02:00 |
|
Sharif Haason
|
4569c8f871
|
Self-document simple.rs example with builder API
|
2022-10-04 18:09:47 +02:00 |
|
Sharif Haason
|
80163764c3
|
Implement builder pattern
|
2022-10-04 18:09:47 +02:00 |
|
Sharif Haason
|
9bc81820e7
|
Update CHANGELOG
|
2022-09-11 21:45:06 +02:00 |
|
Sharif Haason
|
273ef0c045
|
Remove short options for panels and terminal-width
|
2022-09-11 21:45:06 +02:00 |
|
Sharif Haason
|
ac1a67e90c
|
Fix abbreviation clash
|
2022-09-11 21:45:06 +02:00 |
|
Sharif Haason
|
12324d615a
|
Rename --columns to --panels
|
2022-09-11 21:45:06 +02:00 |
|
Sharif Haason
|
6b062ba127
|
Fix typo
|
2022-09-11 21:45:06 +02:00 |
|
Sharif Haason
|
8c7c3a073c
|
Use --columns=auto instead of --auto-width
|
2022-09-11 21:45:06 +02:00 |
|
Sharif Haason
|
0565901fad
|
Return a proper error if terminal size fails
|
2022-09-11 21:45:06 +02:00 |
|
Sharif Haason
|
41b3241718
|
Change columns type to u16
|
2022-09-11 21:45:06 +02:00 |
|
Sharif Haason
|
975a406d20
|
Remove debugging line
|
2022-09-11 21:45:06 +02:00 |
|
Sharif Haason
|
aa43c20f39
|
Bump MSRV
|
2022-09-11 21:45:06 +02:00 |
|
Sharif Haason
|
1fdd770093
|
Implement -a and -t for terminal width setting
|
2022-09-11 21:45:06 +02:00 |
|
Sharif Haason
|
a3fde45c18
|
Added test for multiple columns
|
2022-09-11 21:45:06 +02:00 |
|
Sharif Haason
|
85659a9cd6
|
Prevent overflow when columns >= 32
|
2022-09-11 21:45:06 +02:00 |
|
Sharif Haason
|
b820bdfeca
|
cargo fmt
|
2022-09-11 21:45:06 +02:00 |
|
Sharif Haason
|
b9348ffb1d
|
Adds --columns for Print using custom width #13
|
2022-09-11 21:45:06 +02:00 |
|