aboutsummaryrefslogtreecommitdiffstats
path: root/console/prompter.go
diff options
context:
space:
mode:
authorRichard Hart <richardhart92@gmail.com>2018-01-02 20:00:13 +0800
committerFelix Lange <fjl@users.noreply.github.com>2018-01-02 20:00:13 +0800
commit72e70bcec2e288e2f5d375290d194fd5832842e2 (patch)
tree014d7c47ce638aa163add24c2ca3bd87be37ddb5 /console/prompter.go
parent5866626b0896bafb74e140bc44ddd24ff9006d91 (diff)
downloaddexon-72e70bcec2e288e2f5d375290d194fd5832842e2.tar
dexon-72e70bcec2e288e2f5d375290d194fd5832842e2.tar.gz
dexon-72e70bcec2e288e2f5d375290d194fd5832842e2.tar.bz2
dexon-72e70bcec2e288e2f5d375290d194fd5832842e2.tar.lz
dexon-72e70bcec2e288e2f5d375290d194fd5832842e2.tar.xz
dexon-72e70bcec2e288e2f5d375290d194fd5832842e2.tar.zst
dexon-72e70bcec2e288e2f5d375290d194fd5832842e2.zip
console: remove comment about 'invalid' input (#15735)
All inputs are saved into history, including 'invalid' inputs.
Diffstat (limited to 'console/prompter.go')
-rw-r--r--console/prompter.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/console/prompter.go b/console/prompter.go
index ea03694d4..c477b4817 100644
--- a/console/prompter.go
+++ b/console/prompter.go
@@ -155,8 +155,7 @@ func (p *terminalPrompter) SetHistory(history []string) {
p.State.ReadHistory(strings.NewReader(strings.Join(history, "\n")))
}
-// AppendHistory appends an entry to the scrollback history. It should be called
-// if and only if the prompt to append was a valid command.
+// AppendHistory appends an entry to the scrollback history.
func (p *terminalPrompter) AppendHistory(command string) {
p.State.AppendHistory(command)
}