superfly / flyctl

Command line tools for fly.io services
https://fly.io
Apache License 2.0
1.37k stars 226 forks source link

Show warning for active incidents #3589

Closed aschiavo closed 2 months ago

aschiavo commented 2 months ago

Change Summary

This change adds a background task that queries status.flyio.net for unresolved incidents for every command.

If any incident is returned, it will show a warning to the user. The warning includes instructions to either check statuspage or execute the specific command for listing the incidents which provides extended information.

How:

Documentation

dangra commented 2 months ago

Oh, the only other thing is making DeepSource check pass:

https://app.deepsource.com/gh/superfly/flyctl/run/c0d3a878-c5b7-4f6a-a27f-c15b02a9eb42/go/

image