{"action":"created","issue":{"url":"https://api.github.com/repos/erlang/rebar3/issues/1941","repository_url":"https://api.github.com/repos/erlang/rebar3","labels_url":"https://api.github.com/repos/erlang/rebar3/issues/1941/labels{/name}","comments_url":"https://api.github.com/repos/erlang/rebar3/issues/1941/comments","events_url":"https://api.github.com/repos/erlang/rebar3/issues/1941/events","html_url":"https://github.com/erlang/rebar3/pull/1941","id":379537462,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5OTYxNTc1","number":1941,"title":"Support alias format {Namespace, Cmd} and {Namespace, Cmd, Args} (#1940)","user":{"login":"tothlac","id":3415586,"node_id":"MDQ6VXNlcjM0MTU1ODY=","avatar_url":"https://avatars1.githubusercontent.com/u/3415586?v=4","gravatar_id":"","url":"https://api.github.com/users/tothlac","html_url":"https://github.com/tothlac","followers_url":"https://api.github.com/users/tothlac/followers","following_url":"https://api.github.com/users/tothlac/following{/other_user}","gists_url":"https://api.github.com/users/tothlac/gists{/gist_id}","starred_url":"https://api.github.com/users/tothlac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tothlac/subscriptions","organizations_url":"https://api.github.com/users/tothlac/orgs","repos_url":"https://api.github.com/users/tothlac/repos","events_url":"https://api.github.com/users/tothlac/events{/privacy}","received_events_url":"https://api.github.com/users/tothlac/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-11-11T16:14:17Z","updated_at":"2018-11-16T13:10:44Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/erlang/rebar3/pulls/1941","html_url":"https://github.com/erlang/rebar3/pull/1941","diff_url":"https://github.com/erlang/rebar3/pull/1941.diff","patch_url":"https://github.com/erlang/rebar3/pull/1941.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/erlang/rebar3/issues/comments/439388254","html_url":"https://github.com/erlang/rebar3/pull/1941#issuecomment-439388254","issue_url":"https://api.github.com/repos/erlang/rebar3/issues/1941","id":439388254,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTM4ODI1NA==","user":{"login":"ferd","id":111141,"node_id":"MDQ6VXNlcjExMTE0MQ==","avatar_url":"https://avatars2.githubusercontent.com/u/111141?v=4","gravatar_id":"","url":"https://api.github.com/users/ferd","html_url":"https://github.com/ferd","followers_url":"https://api.github.com/users/ferd/followers","following_url":"https://api.github.com/users/ferd/following{/other_user}","gists_url":"https://api.github.com/users/ferd/gists{/gist_id}","starred_url":"https://api.github.com/users/ferd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ferd/subscriptions","organizations_url":"https://api.github.com/users/ferd/orgs","repos_url":"https://api.github.com/users/ferd/repos","events_url":"https://api.github.com/users/ferd/events{/privacy}","received_events_url":"https://api.github.com/users/ferd/received_events","type":"User","site_admin":false},"created_at":"2018-11-16T13:10:44Z","updated_at":"2018-11-16T13:10:44Z","author_association":"CONTRIBUTOR","body":"I think that might be enough.  The format of arguments should make it so there's no overlap nor conflict detection to run.\r\n\r\nI think that changing `do` is fine. We couldn't set a non-default namespace for `do` I guess because `rebar3 plugins do ...` requires `do` to also be in the `plugins` namespace, so the proposed form should be generally more flexible. \r\n\r\nHowever the risk with the current format is to make sure that we don't break old commands. For example: `rebar3 new template_name app_name` could be used in `rebar3 do new template_name app_name` -- we have to ensure that the lookup is done in the default namespace first otherwise it will look for the `template_name` task in the `new` namespace, which makes no sense.\r\n\r\nI would expect a test to double-check that the default namespace is favoured in preference rules, the way rebar3 does it itself for commands as a whole.  The test can be as simple as running the `rebar3 do new lib shouldexist` and making sure that an app is indeed generated rather than an error."}}
{"actor":{"display_login":"ferd"}}