Reproduction
args must be an array of argv tokens that have already been committed:
src/completion.ts
import { complete } from 'func/completion'
import { AppModule } from './app.module'
complete(AppModule, {
args: 'deploy' as any,
incomplete: '--t',
})How to fix it
Pass { args: ['deploy'], incomplete: '--t' }. Every item in args and the incomplete value must be a string; do not pass one unsplit command line. The complete request is available in details.request.