superfly / flyctl

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

Add `fly machines suspend` #3633

Closed matttpt closed 3 weeks ago

matttpt commented 4 weeks ago

Change Summary

What and Why:

As part of the new suspend/resume feature, add a new fly machines command to suspend a Machine.

How:

Use the new Suspend flaps client method from fly-go, which in turn uses the new suspend endpoint in flaps, and support for the suspended state added to the wait endpoint.

This PR upgrades fly-go to v0.1.17.

Related to:


Documentation

I will be in touch with the docs team, and there will be a Fresh Produce when we're ready.