Question: choices for tab autocompletion, not working
oliverhr opened this issue · comments
Oliver H. Rangel commented
Expected Behavior
Display choices array contents for Tab autocompletion
Actual Behavior
normal question behavior
Steps to Reproduce the Problem
- Follow example from https://github.com/google/zx#question
- 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
Anton Medvedev commented
Press Tab two times.
Oliver H. Rangel commented
thank you @antonmedv, that did the trick