posh/pkg/prompt/history/noop.go
Kevin Franklin Kim e2ad376b6c initial commit
2023-01-03 15:37:15 +01:00

33 lines
757 B
Go

package history
import (
"context"
"github.com/foomo/posh/pkg/log"
)
type Noop struct {
l log.Logger
}
// ------------------------------------------------------------------------------------------------
// ~ Constructor
// ------------------------------------------------------------------------------------------------
func NewNoop(l log.Logger) *Noop {
return &Noop{
l: l,
}
}
// ------------------------------------------------------------------------------------------------
// ~ Public methods
// ------------------------------------------------------------------------------------------------
func (h *Noop) Load(ctx context.Context) ([]string, error) {
return nil, nil
}
func (h *Noop) Persist(ctx context.Context, record string) {
}