clai icon indicating copy to clipboard operation
clai copied to clipboard

Clai command responds before Clai Server is running.

Open andrewcmhicks opened this issue 4 years ago • 0 comments

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):

  • OS: [MacOS & z/OS]
  • Shell [Bash]
  • Version [5.0 & 4.3]

andrewcmhicks avatar May 02 '20 01:05 andrewcmhicks