mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-20 03:44:18 +08:00
Improve repo web message
This commit is contained in:
parent
a1fb9b1a8d
commit
b7eebe7576
@ -283,6 +283,7 @@ fn publish_packages(config: &CliConfig) -> anyhow::Result<()> {
|
||||
output_file.write_all(output.as_bytes())?;
|
||||
|
||||
if let Some(conf) = &config.web {
|
||||
eprintln!("\x1b[01;38;5;155mrepo - generating web content\x1b[0m");
|
||||
generate_web(&repository.packages.keys().cloned().collect(), conf);
|
||||
}
|
||||
Ok(())
|
||||
|
||||
@ -284,7 +284,6 @@ pub fn generate_html_index(
|
||||
),
|
||||
);
|
||||
|
||||
println!("Generating web content to {}", index_path.display());
|
||||
fs::write(index_path, html).expect("Failed to write index HTML file");
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user