MCPcopy Create free account
hub / github.com/Thunder-Compute/thunder-cli / modifyInstanceCmd

Function modifyInstanceCmd

cmd/modify.go:482–490  ·  view source on GitHub ↗
(client *api.Client, instanceID string, req api.InstanceModifyRequest, resp **api.InstanceModifyResponse)

Source from the content-addressed store, hash-verified

480}
481
482func 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
492func renderModifySuccess(instanceID string, resp **api.InstanceModifyResponse) func() string {
493 return func() string {

Callers 1

runModifyFunction · 0.85

Calls 1

ModifyInstanceMethod · 0.80

Tested by

no test coverage detected