Documentation
¶
Index ¶
- Variables
- func CmdHistory(ctx context.Context, cmd Param, historyObj Dumper) (int, error)
- func ExpandMacro(buffer *strings.Builder, reader *strings.Reader, row *Line)
- type Container
- func (c *Container) At(n int) string
- func (c *Container) DumpAt(n int) string
- func (c *Container) GetAt(n int) *Line
- func (c *Container) IgnorePush(newvalue bool) bool
- func (c *Container) Len() int
- func (hisObj *Container) Load(path string) error
- func (hisObj *Container) LoadViaReader(reader io.Reader)
- func (c *Container) Push(line string)
- func (c *Container) PushLine(row Line)
- func (hisObj *Container) Replace(line string) (string, bool, error)
- func (hisObj *Container) Save(path string) error
- func (hisObj *Container) SaveViaWriter(w io.Writer)
- type Dumper
- type Line
- type Param
Constants ¶
This section is empty.
Variables ¶
View Source
var DisableMarks = "\"'"
View Source
var Mark = "!"
View Source
var MaxSaveHistory = 1000
Functions ¶
Types ¶
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
Container has all history data.
func (*Container) IgnorePush ¶
func (*Container) LoadViaReader ¶
func (*Container) SaveViaWriter ¶
type Line ¶
Line has one history data
func NewHistoryLine ¶
NewHistoryLine returns new Line object with history-text
Click to show internal directories.
Click to hide internal directories.