Skip to content

Conversation

aaron-ang
Copy link
Contributor

@aaron-ang aaron-ang commented Aug 22, 2025

close #4464.

Manpage and completions generation now live in the uudoc binary.
Also moved man page generation test cases to a new file: test_uudoc.rs

cargo install --bin uudoc --features uudoc --path .
uudoc manpage <utility>

@aaron-ang aaron-ang force-pushed the migrate-manpage branch 6 times, most recently from d8d6a98 to a0ea101 Compare August 22, 2025 23:15
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/misc/tee (fails in this run but passes in the 'main' branch)

Copy link

github-actions bot commented Sep 5, 2025

GNU testsuite comparison:

Skip an intermittent issue tests/misc/tee (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/timeout/timeout (fails in this run but passes in the 'main' branch)

@aaron-ang aaron-ang marked this pull request as ready for review September 5, 2025 03:55
@aaron-ang
Copy link
Contributor Author

hi @tertsdiepraam @sylvestre, I think my implementation is close. I will need your help to review and improve this PR. Thanks!

@oech3

This comment was marked as resolved.

@aaron-ang
Copy link
Contributor Author

Would you resolve conflicts?

yes, I will work on it

@oech3
Copy link
Contributor

oech3 commented Oct 6, 2025

Thankyou.

Is there a simpler command to generate the man page instead of cargo run --bin uudoc --features uudoc -- manpage ?

I think README.md should guide to use uudoc binary directly. I think wrapping command by cargo might cause rebuild if we used different profile at building.

Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/misc/tee (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/tail/overlay-headers (fails in this run but passes in the 'main' branch)

@oech3

This comment was marked as resolved.

@aaron-ang aaron-ang force-pushed the migrate-manpage branch 2 times, most recently from 4d01e19 to b4a9c2c Compare October 13, 2025 08:41
Copy link

codspeed-hq bot commented Oct 13, 2025

CodSpeed Performance Report

Merging #8513 will not alter performance

Comparing aaron-ang:migrate-manpage (f2170e3) with main (cd27f69)

Summary

✅ 106 untouched
⏩ 73 skipped1

Footnotes

  1. 73 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@aaron-ang aaron-ang changed the title uudoc: move manpage generation away from the binary uudoc: move manpage and completions generation away from the binary Oct 13, 2025
@aaron-ang aaron-ang changed the title uudoc: move manpage and completions generation away from the binary uudoc: move manpage and completions generation away from binary Oct 13, 2025
@aaron-ang aaron-ang changed the title uudoc: move manpage and completions generation away from binary uudoc: move manpage and completions generation from binary Oct 13, 2025
@aaron-ang aaron-ang changed the title uudoc: move manpage and completions generation from binary uudoc: move manpage and completions generation out of binary Oct 13, 2025
Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/tail/overlay-headers (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/timeout/timeout (passes in this run but fails in the 'main' branch)

@aaron-ang aaron-ang force-pushed the migrate-manpage branch 4 times, most recently from ce81973 to 250a799 Compare October 13, 2025 21:08
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/misc/tee (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/tail/overlay-headers (passes in this run but fails in the 'main' branch)

Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/misc/tee (fails in this run but passes in the 'main' branch)

Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/timeout/timeout (passes in this run but fails in the 'main' branch)

Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/tail/overlay-headers (fails in this run but passes in the 'main' branch)

Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/tail/overlay-headers (passes in this run but fails in the 'main' branch)

[dependencies]
console = "0.16.0"
libc = "0.2.153"
phf = "0.13.1"
Copy link
Contributor

Choose a reason for hiding this comment

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

i am not sure it is necessary

Copy link
Contributor Author

@aaron-ang aaron-ang Oct 18, 2025

Choose a reason for hiding this comment

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

The fuzz test will fail if not included, iirc it was "the lock file needs to be updated but --locked was passed to prevent this"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh I guess it works fine now, will rebase

unexpand \
uniq \
unlink \
uudoc \
Copy link
Contributor

Choose a reason for hiding this comment

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

i guess it means that make install will install it, no ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This list is for test feature flags. The uudoc tests will not build unless #[cfg(feature = "uudoc")] is stated.

"[" => "test",

// hashsum aliases - all these hash commands are aliases for hashsum
"md5sum" | "sha1sum" | "sha224sum" | "sha256sum" | "sha384sum" | "sha512sum"
Copy link
Contributor

Choose a reason for hiding this comment

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

uucore is used by other programs, i am not sure we want this list in uucore

Copy link
Contributor Author

Choose a reason for hiding this comment

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

how about moving this file to src/common/validation.rs and creating a new file src/lib.rs to expose the module?

@sylvestre
Copy link
Contributor

looks great, some minor comments

Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/misc/tee (fails in this run but passes in the 'main' branch)

Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/tail/overlay-headers (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/timeout/timeout (passes in this run but fails in the 'main' branch)

Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/misc/tee (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/timeout/timeout (passes in this run but fails in the 'main' branch)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move the manpage generation away from the binary

3 participants