{"action":"created","issue":{"url":"https://api.github.com/repos/aelsabbahy/goss/issues/13","labels_url":"https://api.github.com/repos/aelsabbahy/goss/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/aelsabbahy/goss/issues/13/comments","events_url":"https://api.github.com/repos/aelsabbahy/goss/issues/13/events","html_url":"https://github.com/aelsabbahy/goss/issues/13","id":114529459,"number":13,"title":"YAML config","user":{"login":"RickyCook","id":2114019,"avatar_url":"https://avatars.githubusercontent.com/u/2114019?v=3","gravatar_id":"","url":"https://api.github.com/users/RickyCook","html_url":"https://github.com/RickyCook","followers_url":"https://api.github.com/users/RickyCook/followers","following_url":"https://api.github.com/users/RickyCook/following{/other_user}","gists_url":"https://api.github.com/users/RickyCook/gists{/gist_id}","starred_url":"https://api.github.com/users/RickyCook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RickyCook/subscriptions","organizations_url":"https://api.github.com/users/RickyCook/orgs","repos_url":"https://api.github.com/users/RickyCook/repos","events_url":"https://api.github.com/users/RickyCook/events{/privacy}","received_events_url":"https://api.github.com/users/RickyCook/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-02T05:51:11Z","updated_at":"2015-11-02T11:04:28Z","closed_at":null,"body":"There are a number of advantages to using YAML instead of JSON as your config file:\r\n- superset of JSON, so nothing breaks\r\n- nice things like references to other places in the YAML\r\n- much nicer to read (see the example below)\r\n- allows comments\r\n\r\n**YAML** (auto generated)\r\n```yaml\r\ncommand:\r\n  redis-cli info:\r\n    exit-status: '0'\r\n    stdout: [redis_version]\r\nfile:\r\n  /etc/redis.conf:\r\n    contains: [bind 0.0.0.0]\r\n    exists: true\r\n    filetype: file\r\npackage:\r\n  redis: {installed: true}\r\nport:\r\n  tcp:6379: {ip: 0.0.0.0, listening: true}\r\nservice:\r\n  redis: {running: true}\r\n```\r\n\r\n**JSON**\r\n```json\r\n{\r\n    \"package\": {\r\n        \"redis\": {\r\n            \"installed\": true\r\n        }\r\n    },\r\n    \"file\": {\r\n        \"/etc/redis.conf\": {\r\n            \"exists\": true,\r\n            \"filetype\": \"file\",\r\n            \"contains\": [\"bind 0.0.0.0\"]\r\n        }\r\n    },\r\n    \"port\": {\r\n        \"tcp:6379\": {\r\n            \"listening\": true,\r\n            \"ip\": \"0.0.0.0\"\r\n        }\r\n    },\r\n    \"service\": {\r\n        \"redis\": {\r\n            \"running\": true\r\n        }\r\n    },\r\n    \"command\": {\r\n        \"redis-cli info\": {\r\n            \"exit-status\": \"0\",\r\n            \"stdout\": [\"redis_version\"]\r\n        }\r\n    }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/aelsabbahy/goss/issues/comments/152989034","html_url":"https://github.com/aelsabbahy/goss/issues/13#issuecomment-152989034","issue_url":"https://api.github.com/repos/aelsabbahy/goss/issues/13","id":152989034,"user":{"login":"aelsabbahy","id":6783261,"avatar_url":"https://avatars.githubusercontent.com/u/6783261?v=3","gravatar_id":"","url":"https://api.github.com/users/aelsabbahy","html_url":"https://github.com/aelsabbahy","followers_url":"https://api.github.com/users/aelsabbahy/followers","following_url":"https://api.github.com/users/aelsabbahy/following{/other_user}","gists_url":"https://api.github.com/users/aelsabbahy/gists{/gist_id}","starred_url":"https://api.github.com/users/aelsabbahy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aelsabbahy/subscriptions","organizations_url":"https://api.github.com/users/aelsabbahy/orgs","repos_url":"https://api.github.com/users/aelsabbahy/repos","events_url":"https://api.github.com/users/aelsabbahy/events{/privacy}","received_events_url":"https://api.github.com/users/aelsabbahy/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T11:04:28Z","updated_at":"2015-11-02T11:04:28Z","body":"YAML support would be nice. The only concern is comments. They would disapear when a `goss add...` is run. Would that be an issue?"}}