mirror of
https://github.com/Hilbis/Hilbish
synced 2025-04-03 04:03:25 +00:00
feat: add command.precmd hook
This commit is contained in:
parent
9eabe5323d
commit
4596159b8f
1
rl.go
1
rl.go
@ -22,6 +22,7 @@ func NewLineReader(prompt string) *LineReader {
|
||||
}
|
||||
|
||||
func (lr *LineReader) Read() (string, error) {
|
||||
hooks.Em.Emit("command.precmd", nil)
|
||||
return readline.String(lr.Prompt)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user