Skip to content

Commit

Permalink
renamed remaining app to tool
Browse files Browse the repository at this point in the history
  • Loading branch information
mertd committed Apr 1, 2024
1 parent 9cd290a commit e844a10
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ impl Tool {
let output = command
.output()
.expect(&[&self.name, "cleaning failed"].join(" "));
// print app output
// print tool output
io::stdout().write_all(&output.stdout).unwrap();
io::stderr().write_all(&output.stderr).unwrap();
return output;
Expand All @@ -59,12 +59,12 @@ impl Tool {
fn run(interactive: bool) -> bool {
println!("{} Starting!", PREFIX);
let config: Config = toml::from_str(include_str!("config.toml")).unwrap();
for app in config.tools {
if !interactive && app.interactive {
println!("{} Skipping {}", PREFIX, app.name);
for tool in config.tools {
if !interactive && tool.interactive {
println!("{} Skipping {}", PREFIX, tool.name);
} else {
println!("{} Cleaning {}", PREFIX, app.name);
app.clean();
println!("{} Cleaning {}", PREFIX, tool.name);
tool.clean();
}
}
println!("{} Done!", PREFIX);
Expand Down

0 comments on commit e844a10

Please sign in to comment.