diff options
author | stuebinm | 2022-12-01 00:11:56 +0100 |
---|---|---|
committer | stuebinm | 2022-12-01 00:11:56 +0100 |
commit | 23c6195d83d4cc09545468982dda92c549d4a877 (patch) | |
tree | 651ef8763c6c7bf2c18c539c7313e250de827a83 /src/main.rs | |
parent | 955434a8c86cf8a2ae7e4d62e67441e281398d46 (diff) |
fancy colours
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index feb6e9c..59e7e51 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,6 @@ mod protos; +mod fancy; use protos::protos::gtfs_realtime::FeedMessage; use protobuf::Message; @@ -52,8 +53,9 @@ async fn main() -> miette::Result<()> { true => println!("{}", protobuf_json_mapping::print_to_string(&proto).into_diagnostic()?), false => - println!("{}", protobuf::text_format::print_to_string_pretty(&proto)) + println!("{}", fancy::print_to_string_fancy(&proto)) } + Ok(()) } |