From 440aba6400d890a9da7b514106780786bf2c044b Mon Sep 17 00:00:00 2001 From: derailed Date: Fri, 10 Jan 2020 13:18:49 -0700 Subject: [PATCH] cleaning up --- internal/client/client.go | 2 +- internal/view/log.go | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/internal/client/client.go b/internal/client/client.go index e851f81e..3fa44720 100644 --- a/internal/client/client.go +++ b/internal/client/client.go @@ -216,7 +216,7 @@ func (a *APIClient) RestConfigOrDie() *restclient.Config { return cfg } -// CachedDiscovery returns a cached discovery client. +// CachedDiscoveryOrDie returns a cached discovery client. func (a *APIClient) CachedDiscoveryOrDie() *disk.CachedDiscoveryClient { a.mx.Lock() defer a.mx.Unlock() diff --git a/internal/view/log.go b/internal/view/log.go index 530c08bc..ba90418d 100644 --- a/internal/view/log.go +++ b/internal/view/log.go @@ -103,12 +103,12 @@ func (l *Log) LogCleared() { }) } -// LogErrored notifies an error occurred. +// LogFailed notifies an error occurred. func (l *Log) LogFailed(err error) { l.app.Flash().Err(err) } -// LogsChanged updates the logs. +// LogChanged updates the logs. func (l *Log) LogChanged(lines []string) { log.Debug().Msgf("LOG-CHANGED %d", len(lines)) l.app.QueueUpdateDraw(func() { @@ -351,6 +351,7 @@ func (l *Log) textWrapCmd(*tcell.EventKey) *tcell.EventKey { return nil } +// ToggleAutoScrollCmd toggles autoscroll status. func (l *Log) ToggleAutoScrollCmd(evt *tcell.EventKey) *tcell.EventKey { l.indicator.ToggleAutoScroll() return nil