Sylvestre Ledru
01ea23ba21
Try to release 0.0.26 to see if the artifacts are generated
2024-03-30 22:51:24 +01:00
Ben Wiederhake
e9045be593
tr: fix order inside class [:blank:]
2024-03-29 00:55:34 +01:00
Sylvestre Ledru
2246a0fad1
0.0.24 => 0.0.25
2024-03-23 22:08:05 +01:00
Daniel Hofstetter
05731d13af
tr: remove fixed todo
2024-03-18 13:56:49 +01:00
Krysztal112233
4712015e61
tr: lazily generate the character mapping as necessary
2024-03-18 18:33:07 +08:00
Ben Wiederhake
9cbe6055fa
tr: stream output instead of buffering
...
This should lower memory consumption, and fixes OOM in some scenarios.
2024-03-09 22:51:04 +01:00
Ben Wiederhake
44310f426c
tr: enable passing -t multiple times
2024-02-24 18:37:45 +01:00
Ben Wiederhake
268af90843
tr: enable passing -s multiple times
2024-02-24 18:37:45 +01:00
Ben Wiederhake
dc664006fe
tr: enable passing -d multiple times
2024-02-23 11:58:22 +01:00
Ben Wiederhake
cad94a69be
tr: prevent passing options in the wrong place
...
Note: This requires using the DEPRECATED item Command::trailing_var_arg
in clap. This is going to be another
[problem with clap](https://github.com/tertsdiepraam/uutils-args/blob/main/docs/design/problems_with_clap.md ).
2024-02-23 11:58:22 +01:00
Ben Wiederhake
d9b6675bbf
tr: enable passing -c multiple times
2024-02-23 11:58:18 +01:00
Ben Wiederhake
617f3a8b6f
tr: when deleting and squeezing, never complement set2
2024-02-23 06:08:37 +01:00
Ben Wiederhake
48c4b57c97
tr: require second string argument when deleting and squeezing
2024-02-23 03:23:07 +01:00
BaherSalama
5603305e75
fix tr with any flag with more than 2 operands ( #5952 )
...
* fix tr
* add tests
* fix clippy
* fix clippy2
* do suggestions
* do suggestions
* remove mut
* tr: move var to block & remove its type
---------
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-02-13 15:30:15 +01:00
BaherSalama
5c2ae5be4f
fix tr with delete flag if more than 1 operand given ( #5945 )
...
* fix tr
* fix
* adding a test
* tr: rename test function
---------
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-02-06 16:42:08 +01:00
Sylvestre Ledru
dd5c6c2d00
0.0.23 => 0.0.24
2024-01-20 20:12:19 +01:00
Sylvestre Ledru
6bcf4e2cec
tr: add 'boop' to the ignore spell check
2023-12-19 13:26:39 +01:00
Sylvestre Ledru
9920f13a34
Merge pull request #5640 from tertsdiepraam/tr-no-output
...
`tr`: operate on bytes instead of chars
2023-12-19 11:42:44 +01:00
Sylvestre Ledru
01000a37a3
fix two minor clippy warnings
2023-12-16 09:40:38 +01:00
Terts Diepraam
c32e730a1f
all: remove collect_{lossy,ignore} calls where possible
2023-12-15 14:38:27 +01:00
Terts Diepraam
bc5b5e013a
tr: operate on bytes instead of chars
2023-12-11 13:35:17 +01:00
Sylvestre Ledru
ff92bfb25b
Prepare version 0.0.23
2023-11-13 22:02:01 +01:00
Sylvestre Ledru
e1bd47d549
0.0.21 => 0.0.22
2023-10-15 14:33:23 +02:00
Sylvestre Ledru
9844f1f07d
0.0.20 => 0.0.21
2023-09-03 14:42:54 +02:00
Terts Diepraam
c3f9e19a3b
all: normalize license notice in all *.rs files
2023-08-24 12:21:09 +02:00
Sylvestre Ledru
74530c0f51
Update the version to 0.0.20
2023-07-14 13:04:17 +02:00
Sylvestre Ledru
6ecef3a0e3
Reformat TOML files with taplo
...
npx --yes @taplo/cli fmt
2023-06-08 09:07:19 +02:00
Sylvestre Ledru
830b7d5ce1
New release
2023-06-04 09:46:59 +02:00
iambasanta
22490ae978
tr: move help string to markdown file
2023-04-30 10:32:58 +05:45
Sylvestre Ledru
af0a263191
0.0.17 => 0.0.18
2023-03-29 08:11:25 +02:00
Sylvestre Ledru
76034a8fe2
Merge pull request #4367 from cakebaker/replace_get_long_usage_fn_with_const
...
Replace get_long_usage fns with const
2023-02-15 08:18:36 +01:00
Terts Diepraam
df7fe29095
Merge pull request #4339 from howjmay/tr-newline
...
tr: Remove the extra newline in stderr
2023-02-14 22:58:40 +01:00
Yang Hau
ec81a23afc
tr: Remove the extra newline in stderr
...
closes #4301
2023-02-15 02:04:43 +08:00
Daniel Hofstetter
99f3fc8356
Replace get_long_usage fns with const
2023-02-14 09:51:28 +01:00
Terts Diepraam
ae27c82020
Use workspace inheritance for dependencies
2023-02-11 18:54:46 +01:00
Daniel Hofstetter
ba7a222a55
Start about texts with uppercase char
2023-02-07 14:54:25 +01:00
Daniel Hofstetter
f6b646e4e5
clippy: fix warnings introduced with Rust 1.67.0
2023-01-27 17:37:56 +01:00
Terts Diepraam
4d3dc78686
Version 0.0.17
2023-01-21 10:38:18 +01:00
Miles Liu
d505df5369
uu: use normal use declarations to import macros
2022-11-17 11:49:23 +08:00
Terts Diepraam
acf4ba75fe
tr: update to clap 4
2022-10-13 17:50:43 +02:00
Terts Diepraam
f15c4f2d3e
Version 0.0.16
2022-10-11 23:03:39 +02:00
Terts Diepraam
975a1d170d
change remaining usage codes of 2 to 1 for GNU compat
2022-09-10 20:24:24 +02:00
Terts Diepraam
15180249fc
Version 0.0.15
2022-08-20 13:13:22 +02:00
Terts Diepraam
ba713b6365
Simplify invalid encoding handling into two small methods of Args
...
The previous encoding handling was unnecessarily complex. This commit removes the enum that specifies the handling and instead has two separate methods to collect the strings either with lossy conversion or by ignoring invalidly encoded strings.
2022-08-17 15:20:20 +02:00
Terts Diepraam
5621502a95
all: remove accept_{any, complete, lossy}
and ConversionResult
...
Outside of tests, only `accept_any` was used, meaning that this unnecessarily complicated the code. The behaviour of `accept_any` is now the default (and only) option.
2022-08-17 14:57:28 +02:00
Daniel Hofstetter
c0c26c4c58
Replace deprecated values_of() with get_many()
2022-08-11 13:49:09 +02:00
Daniel Hofstetter
7c3116330e
Replace deprecated is_present() with contains_id()
2022-08-02 15:21:39 +02:00
Daniel Hofstetter
fc4544c42b
bump clap from 3.1.18 to 3.2.15
2022-07-29 14:05:02 +02:00
Andrew Baptist
cc08e1cc3a
Update to handle all the latest cargo warnings
2022-07-18 13:20:49 -04:00
Terts Diepraam
eae07adfb1
Version 0.0.14 ( #3553 )
...
Version 0.0.14
2022-05-22 19:57:19 +02:00