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.
Issue:howdoi skill invokes for built-in bash commands.
:tophat: What is the goal?
howdoi skill invokes for built-in bash commands causing unwanted behavior. In order to curtain invocation of howdoi skill, additional requirements were added to invocation pattern.
howdoi skill can be only invoked for "WH" type questions now on. For example,
pwd -> will result into execution of pwd bash command
what is pwd? -> will result into response from howdoi skill (when active) as man pwd
:memo: How is it being implemented?
All incoming requests (commands) to howdoi skill now are tested to ensure that they are "WH"-type question. If they are not, then the command is returned as it is without activating howdoi assist logic.
:tv: Screenshot or gif showing the result.
New howdoi plugin in action:
Local integration test results:
:boom: How can it be tested?
Install CLAI, activate howdoi plugin
[ ] Use case 1: Type pwd and the response should show current working directory
[ ] Use case 2: Type what is pwd? and the response should show man pwd
[ ] Use case 3: Earlier usecase are still valid, type `clai "howdoi" find out disk usage per user?" and it should return "man df"
:pushpin: References
howdoi
skill invokes for built-in bash commands.:tophat: What is the goal?
howdoi
skill invokes for built-in bash commands causing unwanted behavior. In order to curtain invocation ofhowdoi
skill, additional requirements were added to invocation pattern.howdoi
skill can be only invoked for "WH" type questions now on. For example,pwd
bash commandhowdoi
skill (when active) asman pwd
:memo: How is it being implemented?
All incoming requests (commands) to
howdoi
skill now are tested to ensure that they are "WH"-type question. If they are not, then the command is returned as it is without activatinghowdoi
assist logic.:tv: Screenshot or gif showing the result.
New![howdoi_invocation_change](https://user-images.githubusercontent.com/3219735/76435278-304b4800-638d-11ea-9de5-fbad41b654db.gif)
howdoi
plugin in action:Local integration test results:
:boom: How can it be tested?
Install CLAI, activate
howdoi
pluginpwd
and the response should show current working directorywhat is pwd?
and the response should showman pwd