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
475 stars 73 forks source link

Calling clai skills with single quotes picks up entire line as command #60

Open djfitzgerald opened 4 years ago

djfitzgerald commented 4 years ago

Describe the bug When calling a CLAI skill in double quotes, the text following the double quotes is passed to the skill that is in the double quotes. For example: clai "helpme" nfs will pass the command nfs as input to the helpme skill.

When doing the same thing with single quotes the operation is different. clai 'helpme' nfs passes the command clai helpme nfs as input to CLAI. The helpme skill is never run, and instead we get a CLAI usage message.

To Reproduce Steps to reproduce the behavior:

  1. use tail -f to look at the end of the logfile
  2. Enter the command clai "helpme" nfs
  3. Observe the log entries
  4. Enter the command clai 'helpme' nfs
  5. Observe the log entries

Expected behavior The same behavior should happen for clai 'helpme' nfs as happens for clai "helpme" nfs. That is, the helpme skill should be invoked and look up information on the keyword "nfs".

Screenshots If applicable, add screenshots to help explain your problem.

Log file issue 89 example.log

shell and OS (please complete the following information):