mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-12-22 03:48:21 -06:00
exit after writing workloads
This commit is contained in:
parent
38432eb9b0
commit
ddca67d603
|
@ -229,11 +229,13 @@ pub fn kubi_main(
|
|||
world.add_workload(after_render);
|
||||
|
||||
//Save _visualizer.json
|
||||
#[cfg(feature = "generate_visualizer_data")]
|
||||
std::fs::write(
|
||||
"_visualizer.json",
|
||||
serde_json::to_string(&world.workloads_info()).unwrap(),
|
||||
).unwrap();
|
||||
#[cfg(feature = "generate_visualizer_data")] {
|
||||
std::fs::write(
|
||||
"_visualizer.json",
|
||||
serde_json::to_string(&world.workloads_info()).unwrap(),
|
||||
).unwrap();
|
||||
std::process::exit(0);
|
||||
}
|
||||
|
||||
//Run pre-startup procedure
|
||||
world.run_workload(pre_startup).unwrap();
|
||||
|
|
Loading…
Reference in a new issue