Closed basbs closed 1 year ago
Hello @basbs
For the interactive mode, after you are done typing what key do you fire to get the response? Is it Enter or Ctrl+D?
Because Bito CLI supports Ctrl+D as the key combination to submit your query and get the response. Pressing Enter will take you to new line to support multi line input.
@basbs ,
As @macky3099 pointed out, Bito CLI supports multiline input, To signal to Bito CLI that you are done with your input/query you need to press CTRL+D after which CLI will start processing your input and provide you an answer.
Gotcha!!! should've read the README carefully :). Thanks for pointing it out @bitoandy and @macky3099. Now it works.
My another question is, was there a reason to choose the same functionality for quit
as well?
My personal opinion is,for the quit
, it would be better to have it typed \quit
or something else and hit ENTER
rather than pressing Ctrl+D
.
I feel Ctrl+D
is little dangerous for this scenario. Because sometimes if someone use it twice thinking that the program is not responding, they may end up closing their terminal itself. (or just enforce users to use Ctrl+c
all the time)
Hi @basbs ,
As CTRL+D is used to terminate the input and start processing, we just check if user wants to quit by seeing if user only mentioned quit after user terminated the input to decide to quit. Thus the behavior.
Thanks for the suggestion provided regarding quit, we will look into this and will update the implementation in future releases.
@basbs , I am closing the issue, in case you want to keep it open you can re-open it.
Steps to Reproduce:
bito
in terminalawk command to print first and last column
(or any text).Expected: Text Response.
Actual The command just waits for the response forever (i waited till 6 minutes and pressed Ctrl+c)
Logs i found in
~/.bitoai/etc/logs/bitocli.log
My machine details:
However, Piping the same text to
bito
as standard input seems to work. Example:Logs generated for the above command :
Can someone tell me why the interactive mode doesn't work?