cleaning up

mine
derailed 2021-08-07 07:37:19 -06:00
parent 7e2dab2a66
commit 1bd2959529
2 changed files with 3 additions and 2 deletions

View File

@ -30,6 +30,7 @@ func (o *LogOptions) Info() string {
return fmt.Sprintf("%q::%q", o.Path, o.Container) return fmt.Sprintf("%q::%q", o.Path, o.Container)
} }
// Clone clones options.
func (o *LogOptions) Clone() *LogOptions { func (o *LogOptions) Clone() *LogOptions {
return &LogOptions{ return &LogOptions{
Path: o.Path, Path: o.Path,

View File

@ -99,8 +99,8 @@ func (l *Log) Init(ctx context.Context) (err error) {
} }
// InCmdMode checks if prompt is active. // InCmdMode checks if prompt is active.
func (v *Log) InCmdMode() bool { func (l *Log) InCmdMode() bool {
return v.logs.cmdBuff.InCmdMode() return l.logs.cmdBuff.InCmdMode()
} }
// LogCleared clears the logs. // LogCleared clears the logs.