Skip to content

rm: make the utility public - #5304

Merged
sylvestre merged 4 commits into
uutils:mainfrom
kaathewisegit:main
Sep 23, 2023
Merged

sylvestre merged 4 commits into
uutils:mainfrom
kaathewisegit:main

Conversation

@kaathewisegit

@kaathewisegit kaathewisegit commented Sep 22, 2023 •

Copy link
Copy Markdown
Contributor

Made Options, InteractiveMode, and the remove function public and added documentation for them. This is an attempt at implementing #5294.

rm options are much simpler compared to cp, so I just made them public. I am unsure if OPT_* constants should be made public too.

Additionally, I couldn't figure out what InteractiveMode::PromptProtected does, as it doesn't seem to be used anywhere. So the documentation is a TODO for now.

P.S. the commit also includes a minor typo fix: eay -> way.

@cakebaker cakebaker changed the title cp: make option types public rm: make option types public Sep 22, 2023
@kaathewisegit

Copy link
Copy Markdown
Contributor Author

Amended the commit and overwrote the source branch to fix the copy paste error. Commit name should be correct now.

@kaathewisegit

Copy link
Copy Markdown
Contributor Author

clippy and fmt did not raise any issues on my local machine.

Made `Options` and `InteractiveMode` public and added documentation for them.
@kaathewisegit kaathewisegit changed the title rm: make option types public rm: make the utility public Sep 22, 2023

@tertsdiepraam tertsdiepraam left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! I've tried to explain what PromptProtected is below. It'd be great if you could add that as well. The rest of the docs look very nice!

Comment thread src/uu/rm/src/rm.rs Resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants