Commit graph

131 commits

Author SHA1 Message Date
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
Pat Laster
b612ce5cd7 Cleaner force_prompt_never 2022-10-16 10:57:12 -05:00
Pat Laster
b3b90e453c Forgot fmt again 2022-10-15 17:41:11 -05:00
Pat Laster
1c507c6739 Updated to clap4 2022-10-15 17:39:10 -05:00
Pat Laster
430652193b Fixed merge conflicts 2022-10-15 15:08:28 -05:00
Pat Laster
7e62945fd3
Merge branch 'main' into rm-correct-prompts 2022-10-15 14:58:13 -05:00
Pat Laster
21b066a58e Why is S_IWUSR showing up as a u16 on macos 2022-10-13 20:03:35 -05:00
Pat Laster
fddc8c9d9d More readable unix write permissions for directory using libc 2022-10-13 20:03:35 -05:00
Pat Laster
a3f35a726c Add override for prompting 2022-10-13 20:03:35 -05:00
Pat Laster
e11dd50eb4 Added comments 2022-10-13 20:03:35 -05:00
Pat Laster
355136936f Fixed force rm 2022-10-13 20:03:35 -05:00
Pat Laster
3a1098489e Small fix 2022-10-13 20:03:35 -05:00
Pat Laster
3c39a57da0 Check force position in rm 2022-10-13 20:03:35 -05:00
Pat Laster
50d2948aa1 Fixed rm --force argument not forcing prompt to not show up 2022-10-13 20:03:35 -05:00
Pat Laster
6856ce0bf4 Fixed handle_writable_directory on windows 2022-10-13 20:03:35 -05:00
Pat Laster
1f50df2af6 Fixed spelling error 2022-10-13 20:03:35 -05:00
Pat Laster
30adc8e037 Added windows version of handle_writable_directory 2022-10-13 20:03:35 -05:00
Pat Laster
6245029445 rm: rm3 now passes 2022-10-13 20:03:35 -05:00
Terts Diepraam
c228556791 rm: update to clap 4 2022-10-13 17:50:40 +02:00
Terts Diepraam
f15c4f2d3e Version 0.0.16 2022-10-11 23:03:39 +02:00
Pat Laster
493a2628d2
rm: Added descend messages for interactive mode Fixes #3817 (#3931)
Co-authored-by: Terts Diepraam <terts.diepraam@gmail.com>
2022-10-05 13:35:31 +02:00
Daniel Hofstetter
9e8daf92dd Replace deprecated value_of() with get_one() 2022-09-26 16:42:42 +02:00
Terts Diepraam
975a1d170d change remaining usage codes of 2 to 1 for GNU compat 2022-09-10 20:24:24 +02:00
Daniel Hofstetter
4fcedb4cdc rm: fix indentation within uu_app() 2022-09-04 14:42:23 +02:00
Sylvestre Ledru
282774a3ef
Merge pull request #3853 from stefins/rm-write-protected
rm: added write-protected check for files
2022-08-29 17:03:24 +02:00
Stefin
a33bc185a5 rm: added check for write protected regular empty file
Signed-off-by: Stefin <stefin@pm.me>
2022-08-29 18:09:02 +05:30
Stefin
4c1c9ebf89 rm: change InteractiveMode::Default to InteractiveMode::PromptProtected
Signed-off-by: Stefin <stefin@pm.me>
2022-08-27 19:38:10 +05:30
Stefin
a8326d7f3f rm: added new InteractiveMode InteractiveMode::Never
Signed-off-by: Stefin <stefin@pm.me>
2022-08-23 19:33:34 +05:30
Stefin
9ffb00cd51 rm: added write-protected check for files
Signed-off-by: Stefin <stefin@pm.me>
2022-08-20 18:38:10 +05:30
Terts Diepraam
15180249fc Version 0.0.15 2022-08-20 13:13:22 +02:00
Daniel Hofstetter
c0c26c4c58 Replace deprecated values_of() with get_many() 2022-08-11 13:49:09 +02:00