Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
mertd committed Nov 10, 2024
1 parent f9f3319 commit 4f77a2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ struct App {
impl App {
fn clean(&self) -> Output {
let mut command: Command;
// choose shell appropriate syntax
// choose shell-appropriate syntax
if cfg!(target_os = "windows") {
command = Command::new("cmd");
command.arg("/c");
Expand Down Expand Up @@ -63,9 +63,9 @@ impl App {
/// Process apps according to configuration
fn run(interactive: bool) -> bool {
println!("{} Starting!", PREFIX);
// read config.toml at build time
// read supported app configurations at build time
let config: Config =
toml::from_str(include_str!("config.toml")).expect("config.toml is invalid");
toml::from_str(include_str!("config.toml")).expect("configuration is invalid");
for app in config.apps {
let installed = which(&app.cmd).is_ok();
if !installed || (!interactive && app.interactive) {
Expand Down

0 comments on commit 4f77a2c

Please sign in to comment.