BuilderIO / ai-shell

A CLI that converts natural language to shell commands.
MIT License
4.04k stars 257 forks source link

ai update command steals the whole input #50

Closed hdkiller closed 1 year ago

hdkiller commented 1 year ago

Hello,

The "update" command steals the user input:

ai update all packages

Running: npm update -g @builder.io/ai-shell

up to date in 426ms

18 packages are looking for funding
  run `npm fund` for details

Another example:

 ai update current time

Running: npm update -g @builder.io/ai-shell

Should only run when there is no other arguments passed.

uripeled2 commented 1 year ago

I think you should do ai 'update current time'

steve8708 commented 1 year ago

ah great point, let me refactor this to only match exactly ai update. and agreed @uripeled2 that's the best workaround right now, and I'll fix this up to be more intuitive and not capture anything that starts with update too

steve8708 commented 1 year ago

should be fixed now in 0.1.14 - thanks for reporting!