mirror of
https://github.com/hanzoai/expr.git
synced 2026-09-24 16:58:58 +00:00
Add find() and findIndex()
This commit is contained in:
@@ -25,9 +25,14 @@ var keywords = []string{
|
||||
}
|
||||
|
||||
func main() {
|
||||
home, err := os.UserHomeDir()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
rl, err := readline.NewEx(&readline.Config{
|
||||
Prompt: "❯ ",
|
||||
AutoComplete: completer{append(builtin.Names, keywords...)},
|
||||
HistoryFile: home + "/.expr_history",
|
||||
})
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
||||
Reference in New Issue
Block a user