jsdelivr / globalping-cli

A simple CLI tool to run networking commands remotely from hundreds of globally distributed servers
Mozilla Public License 2.0
118 stars 14 forks source link

History command #89

Closed MartinKolarik closed 5 months ago

MartinKolarik commented 7 months ago

Since we're already dealing with storing history, I'd be cool to expand on that a little and allow looking up previous commands and results. E.g.:

$ globalping history
1 | 2024-01-19 17:57:00 | ping cdn.jsdelivr.net from Germany
> https://www.jsdelivr.com/globalping?measurement=xrfXUEAOGfzwfHFx
2 | 2024-01-19 17:57:10 | ping cdn.jsdelivr.net from Poland
> https://www.jsdelivr.com/globalping?measurement=xrfXUEAOGfzwfHFy
- | 2024-01-19 17:57:10 | ping cdn.jsdelivr.net from previous
> https://www.jsdelivr.com/globalping?measurement=xrfXUEAOGfzwfHFy
3 | 2024-01-19 17:57:20 | ping cdn.jsdelivr.net from CZ
> https://www.jsdelivr.com/globalping?measurement=xrfXUEAOGfzwfHFz
4 | 2024-01-19 17:57:20 | ping cdn.jsdelivr.net from CZ --infinite
> https://www.jsdelivr.com/globalping?measurement=xrfXUEAOGfzwfHFz+xrfXUEAOGfzwfHFz