mirror of
https://github.com/YGGverse/htcount.git
synced 2026-04-01 09:35:39 +00:00
update export-svg to target-svg update usage example
This commit is contained in:
parent
31e310fae7
commit
599435f1ab
3 changed files with 11 additions and 10 deletions
|
|
@ -90,12 +90,12 @@ fn main() -> anyhow::Result<()> {
|
|||
));
|
||||
}
|
||||
|
||||
if let Some(ref p) = argument.export_json {
|
||||
if let Some(ref p) = argument.target_json {
|
||||
let mut f = File::create(p)?;
|
||||
f.write_all(format!("{{\"hosts\":{hosts},\"hits\":{hits}}}").as_bytes())?;
|
||||
}
|
||||
|
||||
if let Some(ref p) = argument.export_svg {
|
||||
if let Some(ref p) = argument.target_svg {
|
||||
let t = std::fs::read_to_string(&argument.template_svg)?;
|
||||
let mut f = File::create(p)?;
|
||||
f.write_all(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue