Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cancerberosgx/xinquirer
like Inquirer but for X. Ask user questions showing annoying dialog on top of the current window. based on electron. node.js API.
https://github.com/cancerberosgx/xinquirer
Last synced: about 2 months ago
JSON representation
like Inquirer but for X. Ask user questions showing annoying dialog on top of the current window. based on electron. node.js API.
- Host: GitHub
- URL: https://github.com/cancerberosgx/xinquirer
- Owner: cancerberoSgx
- Created: 2018-05-13T05:50:20.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-05-14T20:01:07.000Z (over 6 years ago)
- Last Synced: 2024-10-29T01:37:23.791Z (3 months ago)
- Language: HTML
- Size: 354 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changelist.md
Awesome Lists containing this project
README
# xinquirer : inquirer, but for the X
like Inquirer.js but for X. Ask user questions showing dialogs on top of the current window. Based on electron. node.js API similar to Inquirer.js. CLI supported.
**WIP**
# Widgets supported right now
* select-files
* show-message
* confirm
* select-color
* input# node.js API
TODO. For now look at examples/select2FilesAnd2Folders
# CLI
```sh
npm install -g xinquirer
xinquirer --type select-color --message "Please select a color for your user"
xinquirer --configFile questions1.json --out answers.json
xinquirer --configFile questions1.js --out answers.json
```
configFile could be json or .js. IF you want to validate inputs then you need to write js functions.example: TODO.
# objectives:
* basic components
* 100% offline
* support linux windows and mac# Run examples
Build and run :
```sh
npm run build && npm start -- dist/examples/showMessageSimple1.js
```
|Just run:
```sh
npm start -- dist/examples/showMessageSimple1.js
```# Motivation:
This project is a joke, i'm loading electron jast for this. The reality is that I don't like developing UIs, don't want to waste time on it, and I need to interact with users in a UI application and text / command line in that environment is not good: I need to render dialogs on top of the other app!I'm starting developing typescript plugins (not for the public just for me - to play!) and I don't want to learn any editor oro IDE API - just with typescript compiler API i have enough. so I need a cheap way of putting inquirer-like dialogs on top of the user's IDE / editors asking him for files, confirmation, etc.
,
"loud-rejection": "^1.6.0"