int08h / roughenough

A Roughtime secure time sync client and server written in Rust
https://int08h.com/post/roughenough-a-rust-roughtime-server/
Apache License 2.0
123 stars 21 forks source link

[Feature] Option To Have Client Output Time Alone #20

Closed zicklag closed 5 years ago

zicklag commented 5 years ago

It would be nice if there was a way to have the client output the time without all of the "Requesting time...Recieved time.." text. That way it could be more easily used in scripts that want to set the system time using the client's output.

zicklag commented 5 years ago

Actually, I think I'm going to have a go at this. What do you think about this UX:

By default the client just outputs the time, with a -v/--verbose flag will print out what it prints out today, a -j/--json flag will output JSON with fields for midpoint, radius, verified, and merkle_index.

Additionally, maybe we could add --radius, --verified, and --merkle-index flags to let you show only that field.