{"action":"opened","issue":{"url":"https://api.github.com/repos/sun-zheng-an/gulp-shell/issues/37","labels_url":"https://api.github.com/repos/sun-zheng-an/gulp-shell/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/sun-zheng-an/gulp-shell/issues/37/comments","events_url":"https://api.github.com/repos/sun-zheng-an/gulp-shell/issues/37/events","html_url":"https://github.com/sun-zheng-an/gulp-shell/issues/37","id":60276507,"number":37,"title":"options.code","user":{"login":"orlin","id":2434,"avatar_url":"https://avatars.githubusercontent.com/u/2434?v=3","gravatar_id":"","url":"https://api.github.com/users/orlin","html_url":"https://github.com/orlin","followers_url":"https://api.github.com/users/orlin/followers","following_url":"https://api.github.com/users/orlin/following{/other_user}","gists_url":"https://api.github.com/users/orlin/gists{/gist_id}","starred_url":"https://api.github.com/users/orlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orlin/subscriptions","organizations_url":"https://api.github.com/users/orlin/orgs","repos_url":"https://api.github.com/users/orlin/repos","events_url":"https://api.github.com/users/orlin/events{/privacy}","received_events_url":"https://api.github.com/users/orlin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-08T21:14:20Z","updated_at":"2015-03-08T21:14:20Z","closed_at":null,"body":"Could you please give me an `options.code` callback hook-up?  I'd like to run a function any time a command succeeds or fails (it doesn't matter which) and get its exit code to drive notifications with.  See https://github.com/lantiga/ki/issues/22 about one kind of use case in the context of [datomiki](https://github.com/datomicon/datomiki)."}}