Changeset 53 in code for trunk/cli/listing.ml


Ignore:
Timestamp:
Oct 21, 2023, 12:41:04 AM (18 months ago)
Author:
yakumo.izuru
Message:

Use pipes to separate fields on the listing subcommand

Signed-off-by: Izuru Yakumo <yakumo.izuru@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cli/listing.ml

    r23 r53  
    77        let predicates = A.predicate A.authored authors_opt @ A.predicate A.topics topics_opt in
    88        let predicate text = List.fold_left (fun a e -> a && e text) true predicates in
    9         let list_text (t, fnames) = Printf.printf "%s %s %s 𐄁 %s%s\n"
     9        let list_text (t, fnames) = Printf.printf "%s | %s | %s | %s %s\n"
    1010                (Text.short_id t) Date.(pretty_date @@ listing t.Text.date)
    1111                (Person.Set.to_string ~names_only:true t.Text.authors)
Note: See TracChangeset for help on using the changeset viewer.