Skip to content

Commit

Permalink
refactor: 🔨 Change Configuration structuture to "Generation" because …
Browse files Browse the repository at this point in the history
…it makes more sens
  • Loading branch information
AntwortEinesLebens committed Jan 17, 2025
1 parent 919998f commit c822a2d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/commands/generate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use std::{
use toml::from_str;

#[derive(Deserialize)]
struct Configuration {
struct Generation {
metadata: Metadata,
traces: Vec<Traces>,
}
Expand Down Expand Up @@ -100,11 +100,11 @@ impl Runnable for Generate {
)));
}

let configuration: Configuration = from_str(read_to_string(self.path.clone())?.as_str())?;
let generation: Generation = from_str(read_to_string(self.path.clone())?.as_str())?;

println!("{}", configuration.metadata);
println!("{}", generation.metadata);

for trace in configuration.traces {
for trace in generation.traces {
trace.run()?;
}

Expand Down

0 comments on commit c822a2d

Please sign in to comment.