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

Function createSnapshotCmd

cmd/snapshot_create.go:41–49  ·  view source on GitHub ↗
(client *api.Client, req api.CreateSnapshotRequest, resp **api.CreateSnapshotResponse)

Source from the content-addressed store, hash-verified

39}
40
41func 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
51func renderSnapshotCreateSuccess(resp **api.CreateSnapshotResponse) func() string {
52 return func() string {

Callers 1

runSnapshotCreateFunction · 0.85

Calls 1

CreateSnapshotMethod · 0.80

Tested by

no test coverage detected