{"action":"created","issue":{"url":"https://api.github.com/repos/dthree/vorpal/issues/164","repository_url":"https://api.github.com/repos/dthree/vorpal","labels_url":"https://api.github.com/repos/dthree/vorpal/issues/164/labels{/name}","comments_url":"https://api.github.com/repos/dthree/vorpal/issues/164/comments","events_url":"https://api.github.com/repos/dthree/vorpal/issues/164/events","html_url":"https://github.com/dthree/vorpal/issues/164","id":168817178,"number":164,"title":"Prompt is not working with Vorpal parse","user":{"login":"alansouzati","id":1207250,"avatar_url":"https://avatars.githubusercontent.com/u/1207250?v=3","gravatar_id":"","url":"https://api.github.com/users/alansouzati","html_url":"https://github.com/alansouzati","followers_url":"https://api.github.com/users/alansouzati/followers","following_url":"https://api.github.com/users/alansouzati/following{/other_user}","gists_url":"https://api.github.com/users/alansouzati/gists{/gist_id}","starred_url":"https://api.github.com/users/alansouzati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alansouzati/subscriptions","organizations_url":"https://api.github.com/users/alansouzati/orgs","repos_url":"https://api.github.com/users/alansouzati/repos","events_url":"https://api.github.com/users/alansouzati/events{/privacy}","received_events_url":"https://api.github.com/users/alansouzati/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-02T07:27:08Z","updated_at":"2016-08-02T07:31:28Z","closed_at":null,"body":"If my command has a prompt and I'm using vorpal parse, I cannot get the prompt to display the question and the CLI finishes without any log or error which makes it harder to debug.\r\n\r\n```javascript\r\nimport vorpal from 'vorpal'\r\n\r\nconst cli = vorpal();\r\n\r\ncli\r\n    .command('fakeCommand', 'This is just a demo')\r\n    .action(function (args, cb) {\r\n      this.prompt({\r\n        type: 'input',\r\n        name: 'basePath',\r\n        default: process.cwd(),\r\n        message: 'Destination folder (if empty, current folder will be used)?'\r\n      }, (result) => {\r\n          console.log('hi');\r\n          cb();\r\n     });\r\n    });\r\n```\r\n\r\n**This does not work**\r\n\r\n`node cli.js fakeCommand`\r\n\r\n**This works**\r\n\r\n1. `node cli.js`\r\n2.  `fakeCommand`"},"comment":{"url":"https://api.github.com/repos/dthree/vorpal/issues/comments/236824575","html_url":"https://github.com/dthree/vorpal/issues/164#issuecomment-236824575","issue_url":"https://api.github.com/repos/dthree/vorpal/issues/164","id":236824575,"user":{"login":"alansouzati","id":1207250,"avatar_url":"https://avatars.githubusercontent.com/u/1207250?v=3","gravatar_id":"","url":"https://api.github.com/users/alansouzati","html_url":"https://github.com/alansouzati","followers_url":"https://api.github.com/users/alansouzati/followers","following_url":"https://api.github.com/users/alansouzati/following{/other_user}","gists_url":"https://api.github.com/users/alansouzati/gists{/gist_id}","starred_url":"https://api.github.com/users/alansouzati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alansouzati/subscriptions","organizations_url":"https://api.github.com/users/alansouzati/orgs","repos_url":"https://api.github.com/users/alansouzati/repos","events_url":"https://api.github.com/users/alansouzati/events{/privacy}","received_events_url":"https://api.github.com/users/alansouzati/received_events","type":"User","site_admin":false},"created_at":"2016-08-02T07:31:28Z","updated_at":"2016-08-02T07:31:28Z","body":"`_activePrompt` is undefined inside CommandInstance"}}
{"actor":{"display_login":"alansouzati"}}