(client *api.Client, instanceID string, req api.InstanceModifyRequest, resp **api.InstanceModifyResponse)
| 480 | } |
| 481 | |
| 482 | func modifyInstanceCmd(client *api.Client, instanceID string, req api.InstanceModifyRequest, resp **api.InstanceModifyResponse) tea.Cmd { |
| 483 | return func() tea.Msg { |
| 484 | r, err := client.ModifyInstance(instanceID, req) |
| 485 | if err == nil { |
| 486 | *resp = r |
| 487 | } |
| 488 | return tui.ProgressResultMsg{Err: err} |
| 489 | } |
| 490 | } |
| 491 | |
| 492 | func renderModifySuccess(instanceID string, resp **api.InstanceModifyResponse) func() string { |
| 493 | return func() string { |
no test coverage detected