Documentation ¶
Overview ¶
Package pcsliner 命令行 readline 工具包
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LineHistory ¶
type LineHistory struct {
// contains filtered or unexported fields
}
LineHistory 命令行历史
func NewLineHistory ¶
func NewLineHistory(filePath string) (lh *LineHistory, err error)
NewLineHistory 设置历史
type PCSLiner ¶
type PCSLiner struct { State *liner.State History *LineHistory // contains filtered or unexported fields }
PCSLiner 封装 *liner.State, 提供更简便的操作
func (*PCSLiner) DoWriteHistory ¶
DoWriteHistory 执行写入历史
Click to show internal directories.
Click to hide internal directories.