{"action":"created","issue":{"url":"https://api.github.com/repos/netz98/n98-magerun/issues/388","labels_url":"https://api.github.com/repos/netz98/n98-magerun/issues/388/labels{/name}","comments_url":"https://api.github.com/repos/netz98/n98-magerun/issues/388/comments","events_url":"https://api.github.com/repos/netz98/n98-magerun/issues/388/events","html_url":"https://github.com/netz98/n98-magerun/issues/388","id":41205845,"number":388,"title":"$dialog->askConfirmation() should produce output even if -q is set","user":{"login":"fbrnc","id":468820,"avatar_url":"https://avatars.githubusercontent.com/u/468820?v=3","gravatar_id":"","url":"https://api.github.com/users/fbrnc","html_url":"https://github.com/fbrnc","followers_url":"https://api.github.com/users/fbrnc/followers","following_url":"https://api.github.com/users/fbrnc/following{/other_user}","gists_url":"https://api.github.com/users/fbrnc/gists{/gist_id}","starred_url":"https://api.github.com/users/fbrnc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fbrnc/subscriptions","organizations_url":"https://api.github.com/users/fbrnc/orgs","repos_url":"https://api.github.com/users/fbrnc/repos","events_url":"https://api.github.com/users/fbrnc/events{/privacy}","received_events_url":"https://api.github.com/users/fbrnc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-08-26T18:35:10Z","updated_at":"2015-04-21T22:58:10Z","closed_at":null,"body":"When dropping the database using db:drop n98-magerun asks for confirmation (unless the `--force` option is set)\r\n\r\n```\r\nReally drop database project_latest ? [n]:\r\n```\r\n\r\nBut if `-q` is set this prompt is not shown, but n98-magerun is still waiting for some input.\r\n\r\nI think for all blocking prompts like this one the quiet output option needs to be ignored. (It's really hard to debug problems related to this otherwise...)"},"comment":{"url":"https://api.github.com/repos/netz98/n98-magerun/issues/comments/94966553","html_url":"https://github.com/netz98/n98-magerun/issues/388#issuecomment-94966553","issue_url":"https://api.github.com/repos/netz98/n98-magerun/issues/388","id":94966553,"user":{"login":"pocallaghan","id":708624,"avatar_url":"https://avatars.githubusercontent.com/u/708624?v=3","gravatar_id":"","url":"https://api.github.com/users/pocallaghan","html_url":"https://github.com/pocallaghan","followers_url":"https://api.github.com/users/pocallaghan/followers","following_url":"https://api.github.com/users/pocallaghan/following{/other_user}","gists_url":"https://api.github.com/users/pocallaghan/gists{/gist_id}","starred_url":"https://api.github.com/users/pocallaghan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pocallaghan/subscriptions","organizations_url":"https://api.github.com/users/pocallaghan/orgs","repos_url":"https://api.github.com/users/pocallaghan/repos","events_url":"https://api.github.com/users/pocallaghan/events{/privacy}","received_events_url":"https://api.github.com/users/pocallaghan/received_events","type":"User","site_admin":false},"created_at":"2015-04-21T22:58:10Z","updated_at":"2015-04-21T22:58:10Z","body":"@cmuench I don't personally think this is entirely related. Whilst `--no-interaction` can indeed be used to skip past the blocking prompt, I can see the argument that blocking interaction isn't the expected behaviour of quiet. I'm undecided myself, I can see the merits of both sides of that particular debate.\r\n\r\n@fbrnc Based on the way a symfony console command works, when the application sets the verbosity level of the Output object to quiet, this causes the write method to return instantly, thus never outputting anything at all. There isn't really built in functionality to ignore this under circumstances such as user interaction.\r\n\r\nThe only solution I can think of is if we change the verbosity of the Output before passing it to the Dialog/Question helper, then set it back again afterwards. It could be argued that this somewhat defeats the object of a quiet flag though. As I say, I'm undecided. It's a tricky one."}}