- Commands from shell
- Config file
- Call API from Ruby program
The simplest way of using Asker is using asker
command.
Available asker
command functions:
Command | Description |
---|---|
asker |
Show available functions |
asker help |
It's the same as asker |
asker version |
Show current version |
asker PATH/TO/INPUTFILE |
Create questions for selected input file |
asker file PATH/TO/INPUTFILE |
It's the same as asker PATH/TO/INPUTFILE . file keyword is optional |
asker check PATH/TO/INPUTFILE |
Check HAML file syntax |
asker init |
Create default config.ini file into current folder |
asker new FOLDER |
Create FOLDER with input example file |
Configuration file is only required when you want to change default values.
- First, run
asker init
to create aconfig.ini
into your current folder. - Then use plain text editor to change default values.
Resume:
Section | Param | Default | Values | Description |
---|---|---|---|---|
[global] | internet | no | yes or no | Accept to connect Google and download find images URLs |
[questions] | exclude | Comma separated strings | Exclude questions with this texts into their names |
Example, how to call Asker functions from Ruby program:
# First load asker gem
require 'asker'
# Create questions from input file
Asker.start(filename)
Download repository with asker input files:
git clone https://github.com/dvarrui/asker-inputs.git