Comments (3)
I think the only reason for implementing option 2, is having a synchronous api too. It could be useful when writing shell style scripts (with shelljs for example), in which you target on using sync only functions, for "simplicity".
Personally I like using async style as much as I can. So classifying this as a misuse and reporting it, seems right to me.
from inquirer.js.
@mpal9000 Completely agree
from inquirer.js.
I don't believe the flow control belong in Inquirer. This is a totally different concept and responsibility.
from inquirer.js.
Related Issues (20)
- Feature request: Support for "done" callback for all prompt types HOT 4
- Preload input with suggestive text, allow the user to edit. HOT 3
- Feature request: Native filter API for select HOT 1
- Checkbox instructions disappears on space selection HOT 2
- The dist files for CommonJS are not correct HOT 2
- Downgrade or use multi-version for those pure ESM packages HOT 6
- Cannot find package '@inquirer/prompts' HOT 3
- Checkbox default selection HOT 3
- Does `select` in @inquirer/prompts support separators? HOT 5
- Allow prompts to keep their current content on validation error HOT 3
- Remove unused dependencies HOT 1
- Package is wrongly configured for TS Node16 resolver
- CLI cursor missing after force quit
- inquirer/confirm accepts more than just 'Y' and 'n' answers. HOT 3
- Typescript build issues HOT 7
- Error in transformer when using default exits silently (version 8)
- How do I force a re-render from inside the context of createPrompt? HOT 2
- Combine multiple state updates into a single operation to reduce renders HOT 2
- State system should not force a render when the new value is the same as the previous value
- A declaration file cannoty be imported without 'import type'. Did you mean to import an implementation file instead? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from inquirer.js.