{"action":"created","issue":{"url":"https://api.github.com/repos/mitsuhiko/click/issues/368","labels_url":"https://api.github.com/repos/mitsuhiko/click/issues/368/labels{/name}","comments_url":"https://api.github.com/repos/mitsuhiko/click/issues/368/comments","events_url":"https://api.github.com/repos/mitsuhiko/click/issues/368/events","html_url":"https://github.com/mitsuhiko/click/issues/368","id":91483175,"number":368,"title":"How to define groups and commands in different files","user":{"login":"brainysmurf","id":859335,"avatar_url":"https://avatars.githubusercontent.com/u/859335?v=3","gravatar_id":"","url":"https://api.github.com/users/brainysmurf","html_url":"https://github.com/brainysmurf","followers_url":"https://api.github.com/users/brainysmurf/followers","following_url":"https://api.github.com/users/brainysmurf/following{/other_user}","gists_url":"https://api.github.com/users/brainysmurf/gists{/gist_id}","starred_url":"https://api.github.com/users/brainysmurf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brainysmurf/subscriptions","organizations_url":"https://api.github.com/users/brainysmurf/orgs","repos_url":"https://api.github.com/users/brainysmurf/repos","events_url":"https://api.github.com/users/brainysmurf/events{/privacy}","received_events_url":"https://api.github.com/users/brainysmurf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-27T15:26:55Z","updated_at":"2015-07-11T10:39:46Z","closed_at":null,"body":"I'd like to organize my commands and groups into different files, like one for each group that I branches off the root groups, but it's not clear from the docs if I can do this, or if not, that I cannot. \r\n\r\nI tried this\r\n\r\n```\r\nimport cli    # the root group, also defined as the \"callback\" for entry_points\r\n\r\n@cli.command()\r\ndef version:\r\n    print('hello, version')\r\n```\r\n\r\nBut when that code is placed into a file other than the one that cli is already in, and execute it from the command line, it does not work (nor does bash completion work).\r\n\r\nI'm just wondering if anyone could shed some light. I realize this is probably more of a setuptools query."},"comment":{"url":"https://api.github.com/repos/mitsuhiko/click/issues/comments/120603284","html_url":"https://github.com/mitsuhiko/click/issues/368#issuecomment-120603284","issue_url":"https://api.github.com/repos/mitsuhiko/click/issues/368","id":120603284,"user":{"login":"a-sk","id":53479,"avatar_url":"https://avatars.githubusercontent.com/u/53479?v=3","gravatar_id":"","url":"https://api.github.com/users/a-sk","html_url":"https://github.com/a-sk","followers_url":"https://api.github.com/users/a-sk/followers","following_url":"https://api.github.com/users/a-sk/following{/other_user}","gists_url":"https://api.github.com/users/a-sk/gists{/gist_id}","starred_url":"https://api.github.com/users/a-sk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a-sk/subscriptions","organizations_url":"https://api.github.com/users/a-sk/orgs","repos_url":"https://api.github.com/users/a-sk/repos","events_url":"https://api.github.com/users/a-sk/events{/privacy}","received_events_url":"https://api.github.com/users/a-sk/received_events","type":"User","site_admin":false},"created_at":"2015-07-11T10:39:46Z","updated_at":"2015-07-11T10:39:46Z","body":"Maybe [custom-multi-commands](http://click.pocoo.org/4/commands/#custom-multi-commands) is what you are looking for?"}}