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

Function NewSnapshotDeleteModel

tui/snapshot_delete.go:39–52  ·  view source on GitHub ↗
(client *api.Client, snapshots api.ListSnapshotsResponse)

Source from the content-addressed store, hash-verified

37}
38
39func NewSnapshotDeleteModel(client *api.Client, snapshots api.ListSnapshotsResponse) snapshotDeleteModel {
40 s := NewPrimarySpinner()
41 ps := NewPanelStyles()
42 ps.Title = PrimaryTitleStyle().MarginTop(1).MarginBottom(1)
43
44 return snapshotDeleteModel{
45 step: snapshotDeleteStepSelect,
46 client: client,
47 spinner: s,
48 snapshots: snapshots,
49 styles: ps,
50 warningBox: WarningBoxStyle().MarginTop(1).MarginBottom(1),
51 }
52}
53
54func (m snapshotDeleteModel) Init() tea.Cmd {
55 return nil

Callers 1

Calls 4

NewPrimarySpinnerFunction · 0.85
NewPanelStylesFunction · 0.85
PrimaryTitleStyleFunction · 0.85
WarningBoxStyleFunction · 0.85

Tested by

no test coverage detected