src/boilerplate.js
function askQuestions() {
    return request.get('https://app.rung.com.br/api/categories')
        .then(prop('body') & map(({ name, alias: value }) => ({ name, value })))
        .catch(~[{ name: 'Miscellaneous', value: 'miscellaneous' }])
        .then(categories => [
            { name: 'name', message: 'Project name', default: getDefaultName(process.cwd()) },
            { name: 'version', message: 'Version', default: '1.0.0', validate: semver.valid & Boolean },
            { name: 'title', message: 'Title', default: 'Untitled' },
            { name: 'description', message: 'Description' },
            { name: 'category', type: 'list', message: 'Category', default: 'miscellaneous', choices: categories },
            { name: 'license', message: 'license', default: 'MIT' }
        ])
        .then(inquirer.createPromptModule());
}
function askQuestions() {
    return request.get('https://app.rung.com.br/api/categories')
        .then(prop('body') & map(({ name, alias: value }) => ({ name, value })))
        .catch(~[{ name: 'Miscellaneous', value: 'miscellaneous' }])
        .then(categories => [
            { name: 'name', message: 'Project name', default: getDefaultName(process.cwd()) },
            { name: 'version', message: 'Version', default: '1.0.0', validate: semver.valid & Boolean },
            { name: 'title', message: 'Title', default: 'Untitled' },
            { name: 'description', message: 'Description' },
            { name: 'category', type: 'list', message: 'Category', default: 'miscellaneous', choices: categories },
            { name: 'license', message: 'license', default: 'MIT' }
        ])
        .then(inquirer.createPromptModule());
}
function askQuestions ( ) { return request . get ( 'https://app.rung.com.br/api/categories' ) . then ( prop ( 'body' ) & map ( ( { name , alias : value } ) => ( { name , value } ) ) ) . catch ( ~ [ { name : 'Miscellaneous' , value : 'miscellaneous' } ] ) . then ( categories => [ { name : 'name' , message : 'Project name' , default : getDefaultName ( process . cwd ( ) ) } , { name : 'version' , message : 'Version' , default : '1.0.0' , validate : semver . valid & Boolean } , { name : 'title' , message : 'Title' , default : 'Untitled' } , { name : 'description' , message : 'Description' } , { name : 'category' , type : 'list' , message : 'Category' , default : 'miscellaneous' , choices : categories } , { name : 'license' , message : 'license' , default : 'MIT' } ] ) . then ( inquirer . createPromptModule ( ) ) ; }
Generate the answers from the stdin.

@return {Promise}
Generate the answers from the stdin .