Add a '--roff' option to 'um read'
OK, maybe I'm old-school, but I like printing things.
Also, I've put enough effort into my rsync um page that it's a genuinely useful resource I want to share it with co-workers as a PDF, all of whom use rsync, but not all of whom can be bothered to install um itself.
I'm OK with implementing this and doing a PR, but thought I would open an issue to solicit feedback from people about how they'd like this to work.
I can see exactly where man is getting called (libexec/um-read.rb#L42), and it looks like it would be no sweat to skip man and call groff (troff, roff, whatever) to produce roff source instead, or output for one of the devices supported by groff, like PostScript.
I was thinking of keeping it pretty minimal; just:
- add a
--roffswitch toum read - and a config setting where you can customize the command to run instead of
man(e.g.,groff -man -Tps) - and leaving it up to the user to redirect that output into a file or pipe it to
a2ps,lpr, whatever you gotta do
Thoughts?