{ "id": "115295", "key": "TIMOB-14071", "fields": { "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2016-08-29T22:47:17.000+0000", "created": "2013-05-31T18:56:17.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" } ], "issuelinks": [ { "id": "29211", "type": { "id": "10020", "name": "Depends", "inward": "is dependent of", "outward": "depends on" }, "inwardIssue": { "id": "115296", "key": "ALOY-681", "fields": { "summary": "Use CLI \"project\" hook to update app/assets platform-specific resources", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } }, { "id": "29209", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "115262", "key": "TIMOB-14068", "fields": { "summary": "Fail to run BlackBerry if the platform is enabled after alloy project is created", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-23T22:34:27.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "description": "h2. problem\r\n\r\nIn order for processes outside of the CLI to be able to react to changes made via the \"project\" command, the CLI needs to expose hooks. In particular, the case in TIMOB-14068 eventually requires that Alloy should be able to execute some code _after_ Studio adds a new platform to an existing project via the \"project\" command, specifically like:\r\n\r\n{code}\r\n\"/usr/local/bin/titanium\" \"--no-colors\" \"--no-prompt\" \"--no-banner\" \"project\" \"--sdk\" \"3.1.1.v20130530171546\" \"--project-dir\" \"/Users/mxia/Documents/Titanium_Studio_Workspace/testbb\" \"deployment-targets\" \"blackberry,tizen,mobileweb,android,iphone,iPad\"\r\n{code}\r\n\r\nCurrently this command runs as expected, but Alloy has no means of knowing when that happens since there's no hook into this process. \r\n\r\nh2. expected\r\n\r\nThe CLI should expose a hook that allows a process to react to the situation where the \"titanium project\" command updates an existing project.", "attachment": [], "flagged": false, "summary": "CLI: Add hook(s) for the \"project\" command", "creator": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 3.1.1\r\nCLI 3.1.1", "comment": { "comments": [ { "id": "394711", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "The project command isn't quite what I was hoping it to be. It will probably go away or properly fixed. It doesn't matter since we don't need hooks for Alloy's sake since Alloy v2 will be apart of the Titanium build process.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2016-08-29T22:47:17.000+0000", "updated": "2016-08-29T22:47:17.000+0000" }, { "id": "415457", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as Won't Fix with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-23T22:34:27.000+0000", "updated": "2017-03-23T22:34:27.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }