MCPcopy Create free account
hub / github.com/OverloadBlitz/cloudcent-cli / switchViewNext

Method switchViewNext

internal/tui/app.go:384–399  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

382}
383
384func (a *App) switchViewNext() {
385 switch a.viewMode {
386 case ViewModePricing:
387 a.viewMode = ViewModeHistory
388 a.historyView.ActiveSection = views.HistorySectionHeader
389 if a.db != nil {
390 a.historyView.History, _ = a.db.GetHistory(100)
391 }
392 case ViewModeHistory:
393 a.viewMode = ViewModeSettings
394 a.settingsView.ActiveSection = views.SettingsSectionHeader
395 case ViewModeSettings:
396 a.viewMode = ViewModePricing
397 a.pricingView.ActiveSection = views.PricingSectionHeader
398 }
399}
400
401func (a *App) switchViewPrev() {
402 switch a.viewMode {

Callers 3

handlePricingEventMethod · 0.95
handleHistoryEventMethod · 0.95
handleSettingsEventMethod · 0.95

Calls 1

GetHistoryMethod · 0.80

Tested by

no test coverage detected