{"action":"created","issue":{"url":"https://api.github.com/repos/kalabox/kalabox/issues/194","labels_url":"https://api.github.com/repos/kalabox/kalabox/issues/194/labels{/name}","comments_url":"https://api.github.com/repos/kalabox/kalabox/issues/194/comments","events_url":"https://api.github.com/repos/kalabox/kalabox/issues/194/events","html_url":"https://github.com/kalabox/kalabox/issues/194","id":84090689,"number":194,"title":"kbox [subcommand] chokes on subcommand parameter identical to app name","user":{"login":"jdleonard","id":2074112,"avatar_url":"https://avatars.githubusercontent.com/u/2074112?v=3","gravatar_id":"","url":"https://api.github.com/users/jdleonard","html_url":"https://github.com/jdleonard","followers_url":"https://api.github.com/users/jdleonard/followers","following_url":"https://api.github.com/users/jdleonard/following{/other_user}","gists_url":"https://api.github.com/users/jdleonard/gists{/gist_id}","starred_url":"https://api.github.com/users/jdleonard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdleonard/subscriptions","organizations_url":"https://api.github.com/users/jdleonard/orgs","repos_url":"https://api.github.com/users/jdleonard/repos","events_url":"https://api.github.com/users/jdleonard/events{/privacy}","received_events_url":"https://api.github.com/users/jdleonard/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-02T16:17:12Z","updated_at":"2015-06-02T20:07:28Z","closed_at":null,"body":"I have a D7 feature/module named \"copperly\". My Kalabox app is also named \"copperly\". Running the following command succeeds:\r\n\r\n```shell\r\nJDs-MacBook-Pro:code jd$ kbox copperly drush fd copperly\r\ninfo: DOCKER => Creating RUN container.\r\ninfo: DOCKER => Attaching RUN container.\r\ninfo: DOCKER => Starting RUN container.\r\nIdentity added: /ssh/.ssh/id_rsa (/ssh/.ssh/id_rsa)\r\nFeature is in its default state. No diff needed.                                                                                                                                                 [ok]\r\ninfo: DOCKER => RUN container shutting down.\r\n```\r\n\r\nRunning the same command without the app name as the first parameter fails (shows kbox usage suggestions) despite being run within the app directory:\r\n```shell\r\nJDs-MacBook-Pro:code jd$ kbox drush fd copperly\r\nUsage: kbox <command> [-- <options>]\r\n[snip, cut for length]\r\n```\r\n\r\nBoth commands work for the same app when replacing the feature named \"copperly\" with a feature named something else. The kbox command appears to be choking on the parameter to the drush subcommand that happens to be the same as the app name. I confirmed that the problem is general to kbox subcommands, not just drush.\r\n\r\nI think having a Drupal module or theme with the same name as the Kalabox app will not be an uncommon scenario or, more generally, having to pass a parameter to a subcommand when that parameter is identical to the app name."},"comment":{"url":"https://api.github.com/repos/kalabox/kalabox/issues/comments/108081283","html_url":"https://github.com/kalabox/kalabox/issues/194#issuecomment-108081283","issue_url":"https://api.github.com/repos/kalabox/kalabox/issues/194","id":108081283,"user":{"login":"pirog","id":713424,"avatar_url":"https://avatars.githubusercontent.com/u/713424?v=3","gravatar_id":"","url":"https://api.github.com/users/pirog","html_url":"https://github.com/pirog","followers_url":"https://api.github.com/users/pirog/followers","following_url":"https://api.github.com/users/pirog/following{/other_user}","gists_url":"https://api.github.com/users/pirog/gists{/gist_id}","starred_url":"https://api.github.com/users/pirog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pirog/subscriptions","organizations_url":"https://api.github.com/users/pirog/orgs","repos_url":"https://api.github.com/users/pirog/repos","events_url":"https://api.github.com/users/pirog/events{/privacy}","received_events_url":"https://api.github.com/users/pirog/received_events","type":"User","site_admin":false},"created_at":"2015-06-02T20:07:27Z","updated_at":"2015-06-02T20:07:27Z","body":"Yeah totally. We should figure out how to support this. Will try to replicate and then fix."}}