google / zx

A tool for writing better scripts

Home Page:https://google.github.io/zx/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: choices for tab autocompletion, not working

oliverhr opened this issue · comments

Expected Behavior

Display choices array contents for Tab autocompletion

Actual Behavior

normal question behavior

Steps to Reproduce the Problem

  1. Follow example from https://github.com/google/zx#question
  2. execute the script
#!/usr/bin/env zx

const selection = await question('Choose: ', {
  choices: Object.keys(process.env)
})

Specifications

  • Version: 5.1.0
  • Platform: node 16.13.2 / MacOS monterrey

Press Tab two times.

thank you @antonmedv, that did the trick