Commit Graph

62 Commits

Author SHA1 Message Date
sigoden
ff00426c2c chore: improve code quality, split rep/prompt.rs from repl/init.rs 2023-03-10 07:08:40 +08:00
sigoden
05d20f207f
feat: add remain tokens indicator and max tokens guard (#50) 2023-03-09 15:30:39 +08:00
sigoden
a62e461e38
feat: support conversation (#48) 2023-03-09 10:39:28 +08:00
sigoden
a7f2da156c
feat: add role info to readline indicator (#47)
```
coder〉
```
2023-03-09 08:26:35 +08:00
sigoden
e78b5f7c58 refactor: imports order and group 2023-03-09 08:15:14 +08:00
sigoden
00ba8b5108 refactor: extra spaces are allowed around repl command 2023-03-09 07:02:28 +08:00
sigoden
f694a59dcc
refactor: replace dump with print_now! (#35) 2023-03-08 11:58:50 +08:00
sigoden
c7fcdb1744
refactor: adjust repl (#30)
- abandon .copy
- rename .multiple => .editor
- if command successed, do not output `Done`
- if command failed, output `Error: <error message>`
2023-03-07 19:04:54 +08:00
sigoden
11dc4d104b
refactor: optimize ctrl+c/ctrl+d abort handling (#27) 2023-03-07 11:51:52 +08:00
sigoden
cfb46ca0de
feat: add --no-highlight option (#24) 2023-03-06 09:27:49 +08:00
sigoden
c5a2f4603c chore: optimize code 2023-03-06 07:08:51 +08:00
sigoden
2152667fc6
refactor: split src/repl.rs to submodules (#22) 2023-03-06 06:45:00 +08:00