cli: include a static compiled manual page

This commit re-introduces a static and pre-compiled version of the
manual page back into the source code, in case that an installed version
cannot be found on the host system.
This commit is contained in:
Emil Engler
2023-07-19 16:37:15 +02:00
committed by Karolin Varner
parent 067a839d4b
commit 8ff9b53365

View File

@@ -104,9 +104,13 @@ impl Cli {
use Cli::*;
match cli {
Man => {
let _man_cmd = std::process::Command::new("man")
let man_cmd = std::process::Command::new("man")
.args(["1", "rosenpass"])
.status();
if !(man_cmd.is_ok() && man_cmd.unwrap().success()) {
println!(include_str!(env!("ROSENPASS_MAN")));
}
}
GenConfig { config_file, force } => {
ensure!(