()
| 96 | } |
| 97 | |
| 98 | func (a App) Init() tea.Cmd { |
| 99 | if !a.authenticated { |
| 100 | return textinput.Blink |
| 101 | } |
| 102 | cmds := []tea.Cmd{a.dashboard.Init()} |
| 103 | if a.logsEnabled { |
| 104 | cmds = append(cmds, a.logs.Init()) |
| 105 | } |
| 106 | return tea.Batch(cmds...) |
| 107 | } |
| 108 | |
| 109 | func (a App) Update(msg tea.Msg) (tea.Model, tea.Cmd) { |
| 110 | switch msg := msg.(type) { |
no outgoing calls
no test coverage detected