manwas yak-shaving when I realized I needed a better way to write a man page for a tiny little CLI app I wanted to release. And I just released it earlier today: https://github.com/codesections/mnemonic. That doesn't mean I plan to stop working on
man, but I just wanted to share :) )
Didn't realize its a port of go.
Not Rust specific. I've been wanting this at $DAYJOB for a mostly C++/Python code base
CLI question for y'all: I'm working on improving the docs for
man and want to be able to tell users what the best way to generate/install a man page is…which makes me realize I don't know. What is the best way to generate/install a man page using
man works really well with a
build.rs script, which seems like the best way to generate a man page. But then the generated page will be in
./target/release/build/<APP_NAME-HASH>/out directory. Is there a good cross-platform way to access that output file, given that we don't know the hash? I'm guessing we should recommend people use a
makefile plus some POSIX-compatible command to find the file—does that seem right? If so, any ideas what the command would be?
In the future, stager might be able to help because it will be invoking cargo and we might be able to set it up so some relative path stuff could work.
Otherwise, I'm tempted to say to have a second binary meant for generating assets like this (completions are another one)