Skip to content

Commit

Permalink
Merge pull request #21 from IsaacIngram/master
Browse files Browse the repository at this point in the history
Add whitespace above machine names for readability
  • Loading branch information
Mstrodl authored Oct 1, 2022
2 parents 51a37c6 + 423a723 commit 26f5960
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/commands/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ pub fn list(matches: &ArgMatches, api: &mut API) -> Result<(), APIError> {
let drinks = api.get_status_for_machine(matches.value_of("machine"))?;

for machine in drinks.machines {
println!();
let subject_line = format!("{} ({})", machine.display_name, machine.name);
println!("{}", &subject_line);
println!("{}", "=".repeat(subject_line.len()));
Expand Down

0 comments on commit 26f5960

Please sign in to comment.