{"action":"opened","issue":{"url":"https://api.github.com/repos/serverless/serverless/issues/2634","repository_url":"https://api.github.com/repos/serverless/serverless","labels_url":"https://api.github.com/repos/serverless/serverless/issues/2634/labels{/name}","comments_url":"https://api.github.com/repos/serverless/serverless/issues/2634/comments","events_url":"https://api.github.com/repos/serverless/serverless/issues/2634/events","html_url":"https://github.com/serverless/serverless/issues/2634","id":187485747,"number":2634,"title":"Command for creating function","user":{"login":"mpuittinen","id":8393068,"avatar_url":"https://avatars.githubusercontent.com/u/8393068?v=3","gravatar_id":"","url":"https://api.github.com/users/mpuittinen","html_url":"https://github.com/mpuittinen","followers_url":"https://api.github.com/users/mpuittinen/followers","following_url":"https://api.github.com/users/mpuittinen/following{/other_user}","gists_url":"https://api.github.com/users/mpuittinen/gists{/gist_id}","starred_url":"https://api.github.com/users/mpuittinen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpuittinen/subscriptions","organizations_url":"https://api.github.com/users/mpuittinen/orgs","repos_url":"https://api.github.com/users/mpuittinen/repos","events_url":"https://api.github.com/users/mpuittinen/events{/privacy}","received_events_url":"https://api.github.com/users/mpuittinen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-05T09:03:07Z","updated_at":"2016-11-05T09:03:07Z","closed_at":null,"body":"<!--\r\n1. If you have a question and not a bug/feature request please ask it at http://forum.serverless.com\r\n2. Please check if an issue already exists so there are no duplicates\r\n3. Check out and follow our Guidelines: https://github.com/serverless/serverless/blob/master/CONTRIBUTING.md\r\n4. Fill out the whole template so we have a good overview on the issue\r\n5. Do not remove any section of the template. If something is not applicable leave it empty but leave it in the Issue\r\n6. Please follow the template, otherwise we'll have to ask you to update it\r\n-->\r\n\r\n# This is a (Bug Report / Feature Proposal)\r\n\r\nFeature Proposal\r\n\r\n## Description\r\n\r\nAdd a command to add a new function for your service. e.g.\r\n\r\nsls create function -f myfunction -h myfunction/handler.handler\r\n\r\nwould create a new function myfunction with a handler function handler in myfunction/handler.js and enter the definition to serverless.yml.\r\n\r\nMotivation is to ease creation of functions (editing the yml file is prone to errors) and streamline development lifecycle (e.g. creation of test cases for the new functions using serverless-mocha-plugin).\r\n\r\nSimilar or dependent issues:\r\n* none\r\n\r\n## Additional Data\r\n\r\n\r\n"}}
{"actor":{"display_login":"mpuittinen"}}