-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
invoke man(1)
when requesting help
#53
Conversation
That's great! Could we include a pre-render of the page and output that as a fallback? |
Sure thing! :-) My alternative idea is outlined in #55. Simply provide an online version of the manual and output a link to it, in case it is not found. This will keep build dependencies small. |
@emilengler
Sounds great! Are there any drawbacks to that? I think the build should not fail if groff or mandoc are unavailable, and we might add a crate feature to turn including the manpage off explicitly… |
@koraa I have done some changes: First and foremost, I have added a build script, that tries to compile the manual page into ASCII. Afterwards, I have adjusted the help function to invoke man and output the built-in manual, if this fails. |
@emilengler Thank you! Looks good! |
Oh by the way: I think, that mandoc should now become a part of the flake... |
Done :-) |
Thats awesome! Thank you, lets wait for @wucke13 to give an opinion about the compatibility of this! |
@wucke13 Are the issues causing all PRs to fail part of the PRs or are they part of the gh actions issue we had before? I think this PR is mostly ready except for your input about the impact of having a build.rs… |
I think this time the CI is legitimately doing what it is supposed to, finding a small bug 😄
|
Is it possible, that the CI omits the |
Nevermind, I've just got an idea while writing this. I need a rubber ducky |
Hopefully fixed in 12e8bb1. |
40de278
to
b2384fc
Compare
Ready for merge in my opinion. |
This commit invokes `man(1)` when requesting help and emits the built-in manual, if the manual page is not found on the system.
Merge conflict solved. |
Something fishy is going with the aarch64 CIs. It looks like a dependency broke on this architecture... |
Sorry for the delay merging this; I'll check with @wucke13 on his opinion regarding the build.rs |
Lets get this damn thing merged unless @wucke13 sees issues with using a build.rs! @emilengler did you get a t-shirt by the way? |
Not yet, but I will be at the release party next Friday =) |
This commit invokes the
man(1)
command with the rosenpass manual page, when invokinghelp
.In the future, we should handle the case, that a rosenpass manual page is not installed, somewhat better. My idea would be to render the manual page to an HTML version regularly and provide a link to it inside the error message.