mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-25 08:18:43 -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);
|
world.add_workload(after_render);
|
||||||
|
|
||||||
//Save _visualizer.json
|
//Save _visualizer.json
|
||||||
#[cfg(feature = "generate_visualizer_data")]
|
#[cfg(feature = "generate_visualizer_data")] {
|
||||||
std::fs::write(
|
std::fs::write(
|
||||||
"_visualizer.json",
|
"_visualizer.json",
|
||||||
serde_json::to_string(&world.workloads_info()).unwrap(),
|
serde_json::to_string(&world.workloads_info()).unwrap(),
|
||||||
).unwrap();
|
).unwrap();
|
||||||
|
std::process::exit(0);
|
||||||
|
}
|
||||||
|
|
||||||
//Run pre-startup procedure
|
//Run pre-startup procedure
|
||||||
world.run_workload(pre_startup).unwrap();
|
world.run_workload(pre_startup).unwrap();
|
||||||
|
|
Loading…
Reference in a new issue