Skip to content
This repository has been archived by the owner on Jun 4, 2019. It is now read-only.

A set of changes to update etcdctl to use go-etcd 0.2 #16

Merged
merged 16 commits into from
Nov 12, 2013

Conversation

derekchiang
Copy link
Contributor

No description provided.

@derekchiang
Copy link
Contributor Author

It's lightly tested and seems to work well. Note that I deleted sets.go because I'm planning to support sets operation at the etcd level.

const CompareAndSwapUsage = `usage: etcdctl [etcd flags] compareAndSwap <key> <value> [testAndSet flags]
either prevValue or prevIndex needs to be given
special flags: --ttl to set a key with ttl
--pvalue to set the previous value
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer if the flags matched the params: prevvalue and previndex

@derekchiang
Copy link
Contributor Author

@philips Sorry missed your message earlier. Fixed.

@philips
Copy link
Contributor

philips commented Nov 9, 2013

@derekchiang Please only use lower case flags. It is pretty weird to have camel cased flags.

@derekchiang
Copy link
Contributor Author

@philips OK.

philips added a commit that referenced this pull request Nov 12, 2013
A set of changes to update etcdctl to use go-etcd 0.2
@philips philips merged commit cfc6f36 into coreos:master Nov 12, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants