(client *api.Client, monitoring bool, snapshots api.ListSnapshotsResponse)
| 54 | } |
| 55 | |
| 56 | func 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 | |
| 69 | func (m snapshotListModel) Init() tea.Cmd { |
| 70 | cmds := []tea.Cmd{m.spinner.Tick} |
no test coverage detected