Skip to content

Instantly share code, notes, and snippets.

@chrisjlee
Created November 9, 2015 19:51
Show Gist options
  • Save chrisjlee/f04bd28fecc03a16a83d to your computer and use it in GitHub Desktop.
Save chrisjlee/f04bd28fecc03a16a83d to your computer and use it in GitHub Desktop.
Example gulp prompt implementation
/*
* Prompt Task
* WIP/ not integrated
*/
gulp.task('prompt', function () {
return gulp.src('')
.pipe(
$.prompt.prompt(
[{
type: 'input',
message: 'Please enter your username',
name: 'username',
default: 'selenium@usaa.com.tmsdev'
},
{
type: 'password',
message: 'Please enter your password',
name: 'password'
}],
function(response){
//console.log('response', response);
username = response.username;
password = response.password;
})
);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment