add commands history

Mentioned in #81.
This commit is contained in:
Gokcehan committed 2017-05-15 12:30:50 +03:00
1 parent 33c55f0f51
commit 9962b378a8
5 files changed
+45 -5

No files matched your search

+10 -3
View File
@@ -9,10 +9,17 @@ import (
"strings"
)
type cmdItem struct {
pref string
s string
}
type app struct {
ui *ui
nav *nav
quit chan bool
ui *ui
nav *nav
quit chan bool
cmdHist []cmdItem
cmdHind int
}
func newApp() *app {