中文
← Errors

F_SYSTEM_INVALID_COMPLETION_BIN

Invalid completion executable name

The bin passed to func/completion is empty, contains whitespace, or contains a NUL character.

Updated

Reproduction

bin must be the single command token users type in their shell:

src/index.ts
import { withCompletion } from 'func/completion'

withCompletion({ bin: 'my cli' })

How to fix it

Use the matching key from package.json#bin, such as withCompletion({ bin: 'my-cli' }). Punctuation is allowed, but the value cannot be empty or contain whitespace or NUL. The invalid value is available in details.bin.