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

Function newSnapshotListModel

tui/snapshot_list.go:56–67  ·  view source on GitHub ↗
(client *api.Client, monitoring bool, snapshots api.ListSnapshotsResponse)

Source from the content-addressed store, hash-verified

54}
55
56func newSnapshotListModel(client *api.Client, monitoring bool, snapshots api.ListSnapshotsResponse) snapshotListModel {
57 s := NewPrimarySpinner()
58
59 return snapshotListModel{
60 client: client,
61 monitoring: monitoring,
62 snapshots: snapshots,
63 lastUpdate: time.Now(),
64 spinner: s,
65 styles: newSnapshotListStyles(),
66 }
67}
68
69func (m snapshotListModel) Init() tea.Cmd {
70 cmds := []tea.Cmd{m.spinner.Tick}

Callers 1

RunSnapshotListFunction · 0.85

Calls 2

NewPrimarySpinnerFunction · 0.85
newSnapshotListStylesFunction · 0.85

Tested by

no test coverage detected