IBM / clai

Command Line Artificial Intelligence or CLAI is an open-sourced project from IBM Research aimed to bring the power of AI to the command line interface.
https://clai-home.mybluemix.net/
MIT License
478 stars 75 forks source link

Clai command responds before Clai Server is running. #59

Open andrewcmhicks opened 4 years ago

andrewcmhicks commented 4 years ago

Describe the bug The clai server accepts commands before the server is correctly configured to issue installs. To Reproduce Steps to reproduce the behavior:

  1. Install clai
  2. clai activate <skill>
  3. clai deactivate <skill>
  4. clai stop
  5. clai start
  6. clai activate <--issue quickly.

Observed behavior The / and | in the beginning is just the clai logo being formatted incorrectly by git.

/ | | | /\ | |
| | | | / \ | |
| | | | / /\ \ | |
| | | |____ / ____ \ | |
_| || // _\ |____|

nohup: appending output to ‘nohup.out’
[root@623acef53b3a ~]# clai skills
Available Skills:
◻ fixit (Not Installed)
◻ helpme (Not Installed)
◻ howdoi (Not Installed)
◻ ibmcloud (Not Installed)
◻ man page explorer (Not Installed)
☑ nlc2cmd (Installed)

[root@623acef53b3a ~]# clai activate helpme
Available Skills:
◻ fixit (Not Installed)
◻ helpme (Not Installed)
◻ howdoi (Not Installed)
◻ ibmcloud (Not Installed)
◻ man page explorer (Not Installed)
☑ nlc2cmd (Installed)

[root@623acef53b3a ~]# clai activate helpme
Available Skills:
◻ fixit (Not Installed)
◻ helpme (Not Installed)
◻ howdoi (Not Installed)
◻ ibmcloud (Not Installed)
◻ man page explorer (Not Installed)
☑ nlc2cmd (Installed)

Wait for 2 -3 minutes

[root@623acef53b3a ~]# clai activate helpme
Available Skills:
◻ fixit (Not Installed)
☑  helpme (Not Installed)
◻ howdoi (Not Installed)
◻ ibmcloud (Not Installed)
◻ man page explorer (Not Installed)
☑ nlc2cmd (Installed)

Expected behavior

[root@623acef53b3a ~]# clai activate helpme
Available Skills:
◻ fixit (Not Installed)
☑  helpme (Not Installed)
◻ howdoi (Not Installed)
◻ ibmcloud (Not Installed)
◻ man page explorer (Not Installed)
☑ nlc2cmd (Installed)

shell and OS (please complete the following information):