Skip to content

Commit

Permalink
cli: improve history printout
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Sep 20, 2024
1 parent f62a006 commit d319c45
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/cli/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,23 +456,23 @@ impl<O: DescriptorOpts> Exec for Args<BpCommand, O> {
println!(
"\t* {value: >-12}ṩ\t{}\t{cp}",
if *value < 0 {
"debit from"
"taken from"
} else if row.operation == OpType::Credit {
"credit to "
"moved to "
} else {
"change to "
"change "
}
);
}
for (cp, value) in &row.counterparties {
println!(
"\t* {value: >-12}ṩ\t{}\t{cp}",
if *value > 0 {
"paid from "
"received "
} else if row.operation == OpType::Credit {
"change to "
"change? "
} else {
"sent to "
"paid to "
}
);
}
Expand Down

0 comments on commit d319c45

Please sign in to comment.