cli accepts -with PATTERN to filter transactions by all attendees
cicd / ci (push) Successful in 1m31s Details

main
bel 2025-04-03 22:32:56 -06:00
parent dd20f066a3
commit 266af7353a
2 changed files with 4 additions and 4 deletions

View File

@ -87,6 +87,10 @@ func Main() {
deltas = ana.NewDefaultNormalizer().Normalize(deltas)
}
if config.Query.With != "" {
deltas = deltas.Like(ledger.LikeWith(config.Query.With))
}
switch cmd[:3] {
case "bal":
balances := deltas.Balances().

View File

@ -71,10 +71,6 @@ func buildQuery(config Config, args args) (ledger.Like, error) {
}
}
if config.Query.With != "" {
like = andLike(like, ledger.LikeWith(config.Query.With))
}
return like, nil
}