{"action":"opened","issue":{"url":"https://api.github.com/repos/driftyco/ionic/issues/8360","repository_url":"https://api.github.com/repos/driftyco/ionic","labels_url":"https://api.github.com/repos/driftyco/ionic/issues/8360/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic/issues/8360/comments","events_url":"https://api.github.com/repos/driftyco/ionic/issues/8360/events","html_url":"https://github.com/driftyco/ionic/issues/8360","id":180324619,"number":8360,"title":"Ionic cli package command enhancement","user":{"login":"superkew","id":8252497,"avatar_url":"https://avatars.githubusercontent.com/u/8252497?v=3","gravatar_id":"","url":"https://api.github.com/users/superkew","html_url":"https://github.com/superkew","followers_url":"https://api.github.com/users/superkew/followers","following_url":"https://api.github.com/users/superkew/following{/other_user}","gists_url":"https://api.github.com/users/superkew/gists{/gist_id}","starred_url":"https://api.github.com/users/superkew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superkew/subscriptions","organizations_url":"https://api.github.com/users/superkew/orgs","repos_url":"https://api.github.com/users/superkew/repos","events_url":"https://api.github.com/users/superkew/events{/privacy}","received_events_url":"https://api.github.com/users/superkew/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-30T14:55:53Z","updated_at":"2016-09-30T14:55:53Z","closed_at":null,"body":"#### Short description of the problem:\r\n\"ionic package download\" only supports the latest build\r\n\r\n\r\n#### What behavior are you expecting?\r\n\"ionic package download -b x\" where x is the build number to download\r\n\r\n**Steps to reproduce:**\r\n1. submit ionic package\r\n2. submit second ionic package\r\n3. try download first ionic package\r\n\r\n```\r\n.then(function(body) {\r\n      return Package.downloadBuild(appId, jar, body.data[0].id, downloadDirectory);\r\n    })\r\n```\r\n\r\nAbove code forces the package.js file to use the first item in the list, passing in a parameter to the parent function would allow one to select a build.\r\n\r\n**Other information:** (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)\r\n \r\n\r\n**Which Ionic Version?** 2.x\r\n\r\n\r\nI'll attempt to make the change and submit a pull request.\r\n\r\n"}}
{"actor":{"display_login":"superkew"}}