{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/etcd/issues/3248","labels_url":"https://api.github.com/repos/coreos/etcd/issues/3248/labels{/name}","comments_url":"https://api.github.com/repos/coreos/etcd/issues/3248/comments","events_url":"https://api.github.com/repos/coreos/etcd/issues/3248/events","html_url":"https://github.com/coreos/etcd/pull/3248","id":99798471,"number":3248,"title":"initial v3 demo","user":{"login":"xiang90","id":4479947,"avatar_url":"https://avatars.githubusercontent.com/u/4479947?v=3","gravatar_id":"","url":"https://api.github.com/users/xiang90","html_url":"https://github.com/xiang90","followers_url":"https://api.github.com/users/xiang90/followers","following_url":"https://api.github.com/users/xiang90/following{/other_user}","gists_url":"https://api.github.com/users/xiang90/gists{/gist_id}","starred_url":"https://api.github.com/users/xiang90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiang90/subscriptions","organizations_url":"https://api.github.com/users/xiang90/orgs","repos_url":"https://api.github.com/users/xiang90/repos","events_url":"https://api.github.com/users/xiang90/events{/privacy}","received_events_url":"https://api.github.com/users/xiang90/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/coreos/etcd/milestones/18","html_url":"https://github.com/coreos/etcd/milestones/v2.2.0-alpha0","labels_url":"https://api.github.com/repos/coreos/etcd/milestones/18/labels","id":1017395,"number":18,"title":"v2.2.0-alpha0","description":"","creator":{"login":"kelseyhightower","id":1123322,"avatar_url":"https://avatars.githubusercontent.com/u/1123322?v=3","gravatar_id":"","url":"https://api.github.com/users/kelseyhightower","html_url":"https://github.com/kelseyhightower","followers_url":"https://api.github.com/users/kelseyhightower/followers","following_url":"https://api.github.com/users/kelseyhightower/following{/other_user}","gists_url":"https://api.github.com/users/kelseyhightower/gists{/gist_id}","starred_url":"https://api.github.com/users/kelseyhightower/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kelseyhightower/subscriptions","organizations_url":"https://api.github.com/users/kelseyhightower/orgs","repos_url":"https://api.github.com/users/kelseyhightower/repos","events_url":"https://api.github.com/users/kelseyhightower/events{/privacy}","received_events_url":"https://api.github.com/users/kelseyhightower/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":53,"state":"open","created_at":"2015-03-11T22:36:50Z","updated_at":"2015-08-08T12:34:35Z","due_on":"2015-08-13T07:00:00Z","closed_at":null},"comments":1,"created_at":"2015-08-08T12:30:45Z","updated_at":"2015-08-09T03:54:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/coreos/etcd/pulls/3248","html_url":"https://github.com/coreos/etcd/pull/3248","diff_url":"https://github.com/coreos/etcd/pull/3248.diff","patch_url":"https://github.com/coreos/etcd/pull/3248.patch"},"body":"A non-clustered version of v3 key API, which includes put, range, delete\r\nIt will also include a demo command line tool.\r\n\r\nWill follow-up with txn support.\r\n\r\nstart etcd server with v3 demo\r\n\r\n``` sh\r\ngo build\r\n./etcd -v3demo\r\n...\r\n```\r\n\r\nplay with initial ctl\r\n```sh\r\ncd v3etcdctl\r\ngo build\r\n\r\n./v3etcdctl put foo bar\r\nfoo bar\r\n\r\n./v3etcdctl put foo1 bar1\r\nfoo1 bar1\r\n\r\n./v3etcdctl range foo\r\nfoo bar\r\n\r\n./v3etcdctl range foo z_last\r\nfoo bar\r\nfoo1 bar1\r\n\r\n./v3etcdctl delete-range foo\r\nkey foo is deleted\r\n\r\n./v3etcdctl delete-range foo z_last\r\nrange [foo, z_last) is deleted\r\n\r\n./v3etcdctl range foo z_last\r\n(empty)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/coreos/etcd/issues/comments/129101891","html_url":"https://github.com/coreos/etcd/pull/3248#issuecomment-129101891","issue_url":"https://api.github.com/repos/coreos/etcd/issues/3248","id":129101891,"user":{"login":"ecnahc515","id":1400401,"avatar_url":"https://avatars.githubusercontent.com/u/1400401?v=3","gravatar_id":"","url":"https://api.github.com/users/ecnahc515","html_url":"https://github.com/ecnahc515","followers_url":"https://api.github.com/users/ecnahc515/followers","following_url":"https://api.github.com/users/ecnahc515/following{/other_user}","gists_url":"https://api.github.com/users/ecnahc515/gists{/gist_id}","starred_url":"https://api.github.com/users/ecnahc515/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ecnahc515/subscriptions","organizations_url":"https://api.github.com/users/ecnahc515/orgs","repos_url":"https://api.github.com/users/ecnahc515/repos","events_url":"https://api.github.com/users/ecnahc515/events{/privacy}","received_events_url":"https://api.github.com/users/ecnahc515/received_events","type":"User","site_admin":false},"created_at":"2015-08-09T03:54:21Z","updated_at":"2015-08-09T03:54:21Z","body":"Any reason the etcdctl doesn't just have a flag to enable the v3 api, changing the CLI params from those of v2? This would be more consistent with how you set up the server, also would allow for easier experimenting without having to build in another CLI tool. (I'm thinking if we ship experimental v3 features gated by feature flags in the CoreOS image, you don't want another CLI tool to bundle)."}}