Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 430 Bytes

custom-static-array-completion.md

File metadata and controls

27 lines (20 loc) · 430 Bytes

Example: custom static completion

static-completion.yml

commands:
  - name: js-completion
    description: prints hello world
    command: echo "hello world"
    completion:
      completionArray: [foo, bar, baz]

Usage

nca static-completion {tab}

Prints:

foo bar baz

Notes:

Adding the flag merge: true in the completion, merges the custom completion with the default yargs one.