Daniel Hofstetter
7a608196dc
Merge pull request #5356 from terade/refactoring_prompt_file
...
`rm`: refactor `prompt_file`, issue #5345
2023-10-18 07:04:22 +02:00
terade
b6a6a4dc65
rm: apply suggestion of retrieving metatada in function
2023-10-17 17:26:27 +02:00
Daniel Hofstetter
541ac6a813
Merge pull request #5403 from sylvestre/rm
...
rm: In some cases, remove_dir is doing a better job than remove_dir_all
2023-10-16 09:35:44 +02:00
Sylvestre Ledru
e1bd47d549
0.0.21 => 0.0.22
2023-10-15 14:33:23 +02:00
Sylvestre Ledru
226680aa00
Ignore inacc spell
2023-10-14 13:45:29 +02:00
Sylvestre Ledru
505ef714b9
rm: In some cases, remove_dir is doing a better job than remove_dir_all
...
use it when remove_dir_all failed
GNU compatibility (rm/empty-inacc.sh)
2023-10-14 12:09:27 +02:00
terade
f18e8983b1
rm: Refactor prompt_file, lower nesting depth
...
Addressing issue #5345 .
Introduce new helper function: prompt_file_permission_read_only
2023-10-06 01:39:59 +02:00
KAA the Wise
4b76b2f332
rm: document PromptProtected interactive mode option
2023-09-23 15:57:30 +03:00
KAA the Wise
20fb473da8
rm: make the remove
function public
2023-09-22 19:18:27 +03:00
KAA the Wise
75044c1bc4
rm: make option types public
...
Made `Options` and `InteractiveMode` public and added documentation for them.
2023-09-22 19:17:24 +03:00
Sylvestre Ledru
9844f1f07d
0.0.20 => 0.0.21
2023-09-03 14:42:54 +02:00
Sylvestre Ledru
055537e831
Merge pull request #5187 from Benjscho/jwalk-investigation
...
Add benchmarking for `rm`
2023-08-25 13:19:14 -04:00
Ben Schofield
4d78ca47b1
Add Spell ignore
...
Add `samply` and `flamegraph` to spell ignore lists.
2023-08-24 11:15:03 -06:00
Terts Diepraam
c3f9e19a3b
all: normalize license notice in all *.rs files
2023-08-24 12:21:09 +02:00
Ben Schofield
903490a9c8
spelling
2023-08-23 13:05:06 -07:00
Daniel Hofstetter
774180bb09
Remove the author copyright notices
...
from files missed by #5184
2023-08-23 10:54:00 +02:00
Ben Schofield
9ddf218ed9
Add samply url
2023-08-22 07:59:11 -07:00
Ben Schofield
181261beef
Add samply to sampling options
...
Add samply to the sampling options for `rm` benchmarking.
2023-08-22 07:56:42 -07:00
Ben Schofield
76eea583b4
Add benchmarking for rm
...
Add benchmarking script and guide for `rm`, mostly copied from `ls` benchmarking
guide. Tested `rm` using `jwalk` instead of `walkdir`, and saw a slight performance
regression, if any change.
2023-08-21 12:10:31 -07:00
Daniel Hofstetter
113972aa44
rm: replace "if" with "match" in prompt_file()
2023-08-10 15:58:08 +02:00
Daniel Hofstetter
bdd25c37cf
rm: split prompt_file() into two functions
2023-08-10 15:58:01 +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
John Shin
e50b84035f
rm: fix prompt when --interactive is once
2023-05-22 21:26:52 -07:00
John Shin
78909fdd39
rm: allow empty when for --interactive arg
2023-05-22 21:11:47 -07:00
Jed Denlea
db5696f64b
rm: support non-UTF-8 paths
...
Addresses #4868 .
2023-05-17 23:01:21 -07:00
Sylvestre Ledru
f8d7bebed3
ignore some cognitive_complexity for now
2023-05-06 14:50:55 +02:00
Sylvestre Ledru
af0a263191
0.0.17 => 0.0.18
2023-03-29 08:11:25 +02:00
Kamil Ogórek
68e90eacbb
lint: Fix all issues in preparation for enabling clippy::if_not_else
2023-03-26 22:23:50 +02:00
Cheng-Hao
4cbf9a6398
rm: move help strings to markdown file
2023-02-21 18:50:47 -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
Yang Hau
0b1edd33fc
rm: Remove remove_dir_all dependency
...
Closes #4335
2023-02-11 01:04:30 +08:00
Yang Hau
6299b418f5
typo
2023-02-09 00:33:54 +08: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
Joining7943
ca0414d867
clippy: Allow some unnecessary casts
2022-12-16 18:37:50 +01:00
Joining7943
c94a039358
clippy and doc: Fix warnings, mostly needless conversions. Fix documentation warning.
2022-12-16 18:36:27 +01:00
Terts Diepraam
33cbc94f25
rm: use uucore::prompt_yes over custom prompt function
2022-11-17 15:12:18 +01:00
Miles Liu
d505df5369
uu: use normal use declarations to import macros
2022-11-17 11:49:23 +08:00
Daniel Hofstetter
59f37d88d0
rm: fix "needless borrow" clippy warnings
2022-11-04 10:07:21 +01:00
Pat Laster
4b4222ffe3
Bump libc version from "0.2.136" to "0.2.137"
2022-10-29 11:09:52 -05:00
Pat Laster
c7af9a6a80
Bump libc version from "0.2.135" to "0.2.136"
2022-10-27 13:41:55 -05:00
Pat Laster
744481c800
Updated handle_writable_directory comment
2022-10-22 18:00:17 -05:00
Pat Laster
5968f53ef4
Fixed merge conflict
2022-10-20 15:42:55 -05:00
Pat Laster
00af775cd9
Merge branch 'main' into rm-correct-prompts
2022-10-20 15:03:37 -05:00
Niyaz Nigmatullin
05a224d40e
rm: migrate winapi
to windows-sys
crate
2022-10-20 12:16:22 +03:00
Pat Laster
2e61580b99
Cleaner force_prompt_never
2022-10-17 17:40:33 -05:00
Pat Laster
03578a7aca
Fixed invert issue
2022-10-16 13:14:17 -05:00