{"action":"created","issue":{"url":"https://api.github.com/repos/clearlinux/mixer-tools/issues/123","repository_url":"https://api.github.com/repos/clearlinux/mixer-tools","labels_url":"https://api.github.com/repos/clearlinux/mixer-tools/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/clearlinux/mixer-tools/issues/123/comments","events_url":"https://api.github.com/repos/clearlinux/mixer-tools/issues/123/events","html_url":"https://github.com/clearlinux/mixer-tools/issues/123","id":292986573,"number":123,"title":"Provide better defaults to \"mixer init\"","user":{"login":"cmarcelo","id":10478,"avatar_url":"https://avatars3.githubusercontent.com/u/10478?v=4","gravatar_id":"","url":"https://api.github.com/users/cmarcelo","html_url":"https://github.com/cmarcelo","followers_url":"https://api.github.com/users/cmarcelo/followers","following_url":"https://api.github.com/users/cmarcelo/following{/other_user}","gists_url":"https://api.github.com/users/cmarcelo/gists{/gist_id}","starred_url":"https://api.github.com/users/cmarcelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmarcelo/subscriptions","organizations_url":"https://api.github.com/users/cmarcelo/orgs","repos_url":"https://api.github.com/users/cmarcelo/repos","events_url":"https://api.github.com/users/cmarcelo/events{/privacy}","received_events_url":"https://api.github.com/users/cmarcelo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-01-31T00:16:50Z","updated_at":"2018-02-07T23:04:33Z","closed_at":null,"author_association":"COLLABORATOR","body":"At the moment, calling mix init with no arguments I get:\r\n\r\n```\r\n$ mixer init\r\nError: Required flag(s) \"clear-version\", \"mix-version\" have/has not been set\r\nUsage:\r\n  mixer init [flags]\r\n\r\nFlags:\r\n      --all                   Initialize mix with all upstream bundles automatically included\r\n      --clear-version int     Supply the Clear version to compose the mix from (default 1)\r\n      --config string         Supply a specific builder.conf to use for mixing\r\n  -h, --help                  help for init\r\n      --local-rpms            Create and configure local RPMs directories\r\n      --mix-version int       Supply the Mix version to build\r\n      --upstream-url string   Supply an upstream URL to use for mixing (default \"https://download.clearlinux.org\")\r\n\r\nGlobal Flags:\r\n      --new-swupd   EXPERIMENTAL: Use new implementation of swupd-server when possible\r\n```\r\n\r\nThings that could be improved:\r\n\r\n- There is a \"default 1\" for --clear-version, which is not possible because it is a required argument. The version \"1\" also is not good when passed to mixer itself (it would fail).\r\n- We could default the clear-version to be the latest published release at the moment (or the current version of Clear Linux the user is running).\r\n- We could default the mix-version to be just 10 (or even 1).\r\n\r\nNote that one side effect is that \"mixer init\" would just work without arguments, so the other facilities it provides should be easy to get some other way."},"comment":{"url":"https://api.github.com/repos/clearlinux/mixer-tools/issues/comments/363941692","html_url":"https://github.com/clearlinux/mixer-tools/issues/123#issuecomment-363941692","issue_url":"https://api.github.com/repos/clearlinux/mixer-tools/issues/123","id":363941692,"user":{"login":"kevincwells","id":14334449,"avatar_url":"https://avatars1.githubusercontent.com/u/14334449?v=4","gravatar_id":"","url":"https://api.github.com/users/kevincwells","html_url":"https://github.com/kevincwells","followers_url":"https://api.github.com/users/kevincwells/followers","following_url":"https://api.github.com/users/kevincwells/following{/other_user}","gists_url":"https://api.github.com/users/kevincwells/gists{/gist_id}","starred_url":"https://api.github.com/users/kevincwells/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevincwells/subscriptions","organizations_url":"https://api.github.com/users/kevincwells/orgs","repos_url":"https://api.github.com/users/kevincwells/repos","events_url":"https://api.github.com/users/kevincwells/events{/privacy}","received_events_url":"https://api.github.com/users/kevincwells/received_events","type":"User","site_admin":false},"created_at":"2018-02-07T23:04:33Z","updated_at":"2018-02-07T23:04:33Z","author_association":"COLLABORATOR","body":">>Latest published release, on the other hand, is a great default value, and I have code sitting on a long-since-forgotten branch that pulls the latest upstream CLR version:\r\n\r\n>Sounds good, could you cook a patch to use it for init?\r\n\r\nSee #153 "}}
{"actor":{"display_login":"kevincwells"}}