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