{"action":"created","issue":{"url":"https://api.github.com/repos/rethinkdb/horizon/issues/715","repository_url":"https://api.github.com/repos/rethinkdb/horizon","labels_url":"https://api.github.com/repos/rethinkdb/horizon/issues/715/labels{/name}","comments_url":"https://api.github.com/repos/rethinkdb/horizon/issues/715/comments","events_url":"https://api.github.com/repos/rethinkdb/horizon/issues/715/events","html_url":"https://github.com/rethinkdb/horizon/issues/715","id":169225901,"number":715,"title":"Add hz schema save --force option to enable overwriting ","user":{"login":"dalanmiller","id":863286,"avatar_url":"https://avatars.githubusercontent.com/u/863286?v=3","gravatar_id":"","url":"https://api.github.com/users/dalanmiller","html_url":"https://github.com/dalanmiller","followers_url":"https://api.github.com/users/dalanmiller/followers","following_url":"https://api.github.com/users/dalanmiller/following{/other_user}","gists_url":"https://api.github.com/users/dalanmiller/gists{/gist_id}","starred_url":"https://api.github.com/users/dalanmiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dalanmiller/subscriptions","organizations_url":"https://api.github.com/users/dalanmiller/orgs","repos_url":"https://api.github.com/users/dalanmiller/repos","events_url":"https://api.github.com/users/dalanmiller/events{/privacy}","received_events_url":"https://api.github.com/users/dalanmiller/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rethinkdb/horizon/labels/cli%20tool","name":"cli tool","color":"2E43B0"},{"url":"https://api.github.com/repos/rethinkdb/horizon/labels/User%20friendliness","name":"User friendliness","color":"5DB3C6"}],"state":"open","locked":false,"assignee":{"login":"dalanmiller","id":863286,"avatar_url":"https://avatars.githubusercontent.com/u/863286?v=3","gravatar_id":"","url":"https://api.github.com/users/dalanmiller","html_url":"https://github.com/dalanmiller","followers_url":"https://api.github.com/users/dalanmiller/followers","following_url":"https://api.github.com/users/dalanmiller/following{/other_user}","gists_url":"https://api.github.com/users/dalanmiller/gists{/gist_id}","starred_url":"https://api.github.com/users/dalanmiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dalanmiller/subscriptions","organizations_url":"https://api.github.com/users/dalanmiller/orgs","repos_url":"https://api.github.com/users/dalanmiller/repos","events_url":"https://api.github.com/users/dalanmiller/events{/privacy}","received_events_url":"https://api.github.com/users/dalanmiller/received_events","type":"User","site_admin":false},"assignees":[{"login":"dalanmiller","id":863286,"avatar_url":"https://avatars.githubusercontent.com/u/863286?v=3","gravatar_id":"","url":"https://api.github.com/users/dalanmiller","html_url":"https://github.com/dalanmiller","followers_url":"https://api.github.com/users/dalanmiller/followers","following_url":"https://api.github.com/users/dalanmiller/following{/other_user}","gists_url":"https://api.github.com/users/dalanmiller/gists{/gist_id}","starred_url":"https://api.github.com/users/dalanmiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dalanmiller/subscriptions","organizations_url":"https://api.github.com/users/dalanmiller/orgs","repos_url":"https://api.github.com/users/dalanmiller/repos","events_url":"https://api.github.com/users/dalanmiller/events{/privacy}","received_events_url":"https://api.github.com/users/dalanmiller/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/rethinkdb/horizon/milestones/11","html_url":"https://github.com/rethinkdb/horizon/milestones/First%20post-2.0%20release","labels_url":"https://api.github.com/repos/rethinkdb/horizon/milestones/11/labels","id":1851694,"number":11,"title":"First post-2.0 release","description":"","creator":{"login":"deontologician","id":1366,"avatar_url":"https://avatars.githubusercontent.com/u/1366?v=3","gravatar_id":"","url":"https://api.github.com/users/deontologician","html_url":"https://github.com/deontologician","followers_url":"https://api.github.com/users/deontologician/followers","following_url":"https://api.github.com/users/deontologician/following{/other_user}","gists_url":"https://api.github.com/users/deontologician/gists{/gist_id}","starred_url":"https://api.github.com/users/deontologician/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deontologician/subscriptions","organizations_url":"https://api.github.com/users/deontologician/orgs","repos_url":"https://api.github.com/users/deontologician/repos","events_url":"https://api.github.com/users/deontologician/events{/privacy}","received_events_url":"https://api.github.com/users/deontologician/received_events","type":"User","site_admin":false},"open_issues":28,"closed_issues":1,"state":"open","created_at":"2016-06-27T23:59:20Z","updated_at":"2016-08-03T20:38:21Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-08-03T20:28:19Z","updated_at":"2016-08-03T20:53:05Z","closed_at":null,"body":"Starting state 1\r\n\r\n```\r\n$ tree \r\n.\r\n├── .hz\r\n│   ├── config.toml\r\n│   ├── schema.toml\r\n│   └── secrets.toml\r\n```\r\n\r\nOption 1:\r\n\r\n```\r\nhz schema save\r\n\r\n$ tree\r\n.\r\n├── .hz\r\n│   ├── config.toml\r\n│   ├── schema.toml\r\n│   ├── schema.toml.2016-08-03T19:55:28.876Z\r\n│   └── secrets.toml\r\n```\r\n\r\nOption 2:\r\n\r\n```\r\nhz schema save --force\r\n\r\n$ tree\r\n.\r\n├── .hz\r\n│   ├── config.toml\r\n│   ├── schema.toml # overwritten\r\n│   └── secrets.toml\r\n```\r\n\r\nThis should also work with `hz schema save --out-file` which will **_require_** `--force` before overwriting the specified output `toml` file and will error out without it specified.\r\n"},"comment":{"url":"https://api.github.com/repos/rethinkdb/horizon/issues/comments/237369771","html_url":"https://github.com/rethinkdb/horizon/issues/715#issuecomment-237369771","issue_url":"https://api.github.com/repos/rethinkdb/horizon/issues/715","id":237369771,"user":{"login":"danielmewes","id":505365,"avatar_url":"https://avatars.githubusercontent.com/u/505365?v=3","gravatar_id":"","url":"https://api.github.com/users/danielmewes","html_url":"https://github.com/danielmewes","followers_url":"https://api.github.com/users/danielmewes/followers","following_url":"https://api.github.com/users/danielmewes/following{/other_user}","gists_url":"https://api.github.com/users/danielmewes/gists{/gist_id}","starred_url":"https://api.github.com/users/danielmewes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielmewes/subscriptions","organizations_url":"https://api.github.com/users/danielmewes/orgs","repos_url":"https://api.github.com/users/danielmewes/repos","events_url":"https://api.github.com/users/danielmewes/events{/privacy}","received_events_url":"https://api.github.com/users/danielmewes/received_events","type":"User","site_admin":false},"created_at":"2016-08-03T20:53:05Z","updated_at":"2016-08-03T20:53:05Z","body":"... on the other hand, I think we have `--force` for `schema apply` though?"}}
{"actor":{"display_login":"danielmewes"}}