(client *api.Client, req api.CreateSnapshotRequest, resp **api.CreateSnapshotResponse)
| 39 | } |
| 40 | |
| 41 | func createSnapshotCmd(client *api.Client, req api.CreateSnapshotRequest, resp **api.CreateSnapshotResponse) tea.Cmd { |
| 42 | return func() tea.Msg { |
| 43 | r, err := client.CreateSnapshot(req) |
| 44 | if err == nil { |
| 45 | *resp = r |
| 46 | } |
| 47 | return tui.ProgressResultMsg{Err: err} |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | func renderSnapshotCreateSuccess(resp **api.CreateSnapshotResponse) func() string { |
| 52 | return func() string { |
no test coverage detected