]> Kevux Git Server - kevux-tools/commit
Progress: Continue working on completing the remove program.
authorKevin Day <Kevin@kevux.org>
Tue, 1 Apr 2025 00:53:28 +0000 (19:53 -0500)
committerKevin Day <Kevin@kevux.org>
Tue, 1 Apr 2025 01:51:37 +0000 (20:51 -0500)
commit59b9db759df36746814b515171bb9e37ce379e4a
treecb6ad695fbadff57ea4fad8c2e9a70d09eb167f8
parent1cd21111324a98aecc35214e51c357e1e520c0df
Progress: Continue working on completing the remove program.

Fix recursion parameter to actually work by setting the `kt_remove_depth_max_d` when calling `f_directory_remove()`.
Make sure `--force` works as expected as well as work when not specified (remove unnecessary checks).
Still print verbose messages even when in debug mode while the force parameter is passed.

Oops! I incorrectly used `macro_f_console_parameter_t_initialize_6()` when I instead should have used `macro_f_console_parameter_t_initialize_4()`.
The `macro_f_console_parameter_t_initialize_4()` is for the short parameter type where the `macro_f_console_parameter_t_initialize_6()` is for the simple parameter type.

Finish the `--help` messages for the `rm` program.
Make sure to note that the `--one-file-system` is not supported.

Fix messaage for `--preserve-root=all` error.
Make sure to handle `--preserve-root=/`.
12 files changed:
sources/c/program/kevux/tools/remove/main/operate.c
sources/c/program/kevux/tools/remove/main/operate.h
sources/c/program/kevux/tools/remove/main/preprocess.c
sources/c/program/kevux/tools/remove/main/print/debug.c
sources/c/program/kevux/tools/remove/main/print/message.c
sources/c/program/kevux/tools/remove/main/print/verbose.c
sources/c/program/kevux/tools/remove/main/print/warning.c
sources/c/program/kevux/tools/remove/rm/enumeration.h
sources/c/program/kevux/tools/remove/rm/print.c
sources/c/program/kevux/tools/remove/rm/rm.c
sources/c/program/kevux/tools/remove/rm/string.c
sources/c/program/kevux/tools/remove/rm/string.h