{"action":"created","issue":{"url":"https://api.github.com/repos/magneticio/vamp/issues/212","labels_url":"https://api.github.com/repos/magneticio/vamp/issues/212/labels{/name}","comments_url":"https://api.github.com/repos/magneticio/vamp/issues/212/comments","events_url":"https://api.github.com/repos/magneticio/vamp/issues/212/events","html_url":"https://github.com/magneticio/vamp/issues/212","id":89519330,"number":212,"title":"Add generate command to CLI","user":{"login":"plamola","id":3274822,"avatar_url":"https://avatars.githubusercontent.com/u/3274822?v=3","gravatar_id":"","url":"https://api.github.com/users/plamola","html_url":"https://github.com/plamola","followers_url":"https://api.github.com/users/plamola/followers","following_url":"https://api.github.com/users/plamola/following{/other_user}","gists_url":"https://api.github.com/users/plamola/gists{/gist_id}","starred_url":"https://api.github.com/users/plamola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plamola/subscriptions","organizations_url":"https://api.github.com/users/plamola/orgs","repos_url":"https://api.github.com/users/plamola/repos","events_url":"https://api.github.com/users/plamola/events{/privacy}","received_events_url":"https://api.github.com/users/plamola/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/magneticio/vamp/labels/vamp-cli","name":"vamp-cli","color":"207de5"}],"state":"open","locked":false,"assignee":{"login":"plamola","id":3274822,"avatar_url":"https://avatars.githubusercontent.com/u/3274822?v=3","gravatar_id":"","url":"https://api.github.com/users/plamola","html_url":"https://github.com/plamola","followers_url":"https://api.github.com/users/plamola/followers","following_url":"https://api.github.com/users/plamola/following{/other_user}","gists_url":"https://api.github.com/users/plamola/gists{/gist_id}","starred_url":"https://api.github.com/users/plamola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plamola/subscriptions","organizations_url":"https://api.github.com/users/plamola/orgs","repos_url":"https://api.github.com/users/plamola/repos","events_url":"https://api.github.com/users/plamola/events{/privacy}","received_events_url":"https://api.github.com/users/plamola/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/magneticio/vamp/milestones/6","html_url":"https://github.com/magneticio/vamp/milestones/0.7.8","labels_url":"https://api.github.com/repos/magneticio/vamp/milestones/6/labels","id":1149096,"number":6,"title":"0.7.8","description":"- Polish CLI\r\n- Prepare for UI integration\r\n- Optimize build pipeline\r\n- Scripting MVP","creator":{"login":"plamola","id":3274822,"avatar_url":"https://avatars.githubusercontent.com/u/3274822?v=3","gravatar_id":"","url":"https://api.github.com/users/plamola","html_url":"https://github.com/plamola","followers_url":"https://api.github.com/users/plamola/followers","following_url":"https://api.github.com/users/plamola/following{/other_user}","gists_url":"https://api.github.com/users/plamola/gists{/gist_id}","starred_url":"https://api.github.com/users/plamola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plamola/subscriptions","organizations_url":"https://api.github.com/users/plamola/orgs","repos_url":"https://api.github.com/users/plamola/repos","events_url":"https://api.github.com/users/plamola/events{/privacy}","received_events_url":"https://api.github.com/users/plamola/received_events","type":"User","site_admin":false},"open_issues":19,"closed_issues":32,"state":"open","created_at":"2015-06-04T08:46:26Z","updated_at":"2015-06-19T11:41:02Z","due_on":"2015-06-28T22:00:00Z","closed_at":null},"comments":1,"created_at":"2015-06-19T09:45:10Z","updated_at":"2015-06-19T14:15:40Z","closed_at":null,"body":"To help users create artifacts, the `generate` command can be used. The result of the command will be printed to stdout and can be redirected to a file or another command.\r\n\r\nDefault the output will be YAML, but adding the parameter --json will generate JSON output\r\n\r\n```bash\r\n> vamp generate breed\r\n```\r\n\r\nWith parameter, the different parts of a artifact can be pre-filled.\r\n```bash\r\n> vamp generate breed --name my_breed_name --deployable docker:ubuntu\r\n```\r\n\r\nor with a blueprint\r\n```bash\r\n> vamp generate blueprint --name my_blueprint_name --cluster frontend --breed my_frontend_breed\r\n```\r\n\r\nBy adding support for the `--file`, the generate command can be pre-intialised with an existing file, or input from stdin.\r\n\r\n```bash\r\nvamp create blueprint  < vamp generate blueprint --cluster frontend --breed my_frontend_breed  \\  \r\n< vamp generate blueprint --cluster backend --breed my_backend_breed \\\r\n< vamp generate blueprint --env \"JAVA_HOME=/opt/java/bin\"\r\n\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/magneticio/vamp/issues/comments/113528256","html_url":"https://github.com/magneticio/vamp/issues/212#issuecomment-113528256","issue_url":"https://api.github.com/repos/magneticio/vamp/issues/212","id":113528256,"user":{"login":"plamola","id":3274822,"avatar_url":"https://avatars.githubusercontent.com/u/3274822?v=3","gravatar_id":"","url":"https://api.github.com/users/plamola","html_url":"https://github.com/plamola","followers_url":"https://api.github.com/users/plamola/followers","following_url":"https://api.github.com/users/plamola/following{/other_user}","gists_url":"https://api.github.com/users/plamola/gists{/gist_id}","starred_url":"https://api.github.com/users/plamola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plamola/subscriptions","organizations_url":"https://api.github.com/users/plamola/orgs","repos_url":"https://api.github.com/users/plamola/repos","events_url":"https://api.github.com/users/plamola/events{/privacy}","received_events_url":"https://api.github.com/users/plamola/received_events","type":"User","site_admin":false},"created_at":"2015-06-19T14:15:40Z","updated_at":"2015-06-19T14:15:40Z","body":"Basic version for blueprints has been implemented\r\n\r\n**Usage**\r\n```bash\r\nvamp generate blueprint --cluster my-cluster --breed my-breed \r\nvamp generate blueprint --cluster my-cluster --breed my-breed --file blueprint.yaml\r\nvamp generate blueprint --cluster my-cluster --breed my-breed --stdin < blueprint.yaml\r\nvamp generate blueprint --cluster my-cluster --breed my-breed --routing my-route --scale medium\r\n```\r\n\r\nThe following command create an empty scaffold (support for parameters still to be added)\r\n\r\n```bash\r\nvamp generate breed\r\nvamp generate filter\r\nvamp generate routing\r\nvamp generate scale\r\n```\r\n\r\n\r\n"}}