{"action":"opened","issue":{"url":"https://api.github.com/repos/idcos/cloud-cli/issues/17","repository_url":"https://api.github.com/repos/idcos/cloud-cli","labels_url":"https://api.github.com/repos/idcos/cloud-cli/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/idcos/cloud-cli/issues/17/comments","events_url":"https://api.github.com/repos/idcos/cloud-cli/issues/17/events","html_url":"https://github.com/idcos/cloud-cli/issues/17","id":195150035,"number":17,"title":"yaml数据配置文件易用性","user":{"login":"voidint","id":6327183,"avatar_url":"https://avatars.githubusercontent.com/u/6327183?v=3","gravatar_id":"","url":"https://api.github.com/users/voidint","html_url":"https://github.com/voidint","followers_url":"https://api.github.com/users/voidint/followers","following_url":"https://api.github.com/users/voidint/following{/other_user}","gists_url":"https://api.github.com/users/voidint/gists{/gist_id}","starred_url":"https://api.github.com/users/voidint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voidint/subscriptions","organizations_url":"https://api.github.com/users/voidint/orgs","repos_url":"https://api.github.com/users/voidint/repos","events_url":"https://api.github.com/users/voidint/events{/privacy}","received_events_url":"https://api.github.com/users/voidint/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-13T03:21:40Z","updated_at":"2016-12-13T03:21:40Z","closed_at":null,"body":"- 提供导出完整数据配置文件功能。可以用这个文件在其他地方`重放`。\r\n- 提供除了`yaml`外其他格式的数据配置文件。撇开个人偏好不说，`yaml`通过空格来区分元素的级别，这样就很容易搞错，搞错了格式也没法一下看出问题的原因。如果说要用xxx用具来帮助编辑`yaml`，那安装工具和学习工具的使用，这本身也是一种成本。\r\n- 简化现有的`yaml`数据文件格式。最直接能想到的就是提供`默认值`。比如，`端口号`、`用户名`、`密码`、`key路径`、`主机名`等等，这些信息如果用户不指定就一律使用默认值。想尽一切办法简化这个文件，再配合上面说的`导出完整数据配置文件功能`，可以将完整的数据配置文件导出，下次就可以重放了。这就是所谓的`约定大于配置`。\r\n- 怎么设计`yaml`数据文件格式都是手段，真正的目的其实是把数据转化成内存中的数据结构。不一定非要通过编辑完整的`yaml`数据文件后导入来实现。这方面有些不成熟想法，等想明白了再提。"}}
{"actor":{"display_login":"voidint"}}