etcdctl: add --ca-file, --cert-file, --key-file flags

This commit is contained in:
Brian Waldon
2014-11-06 12:16:07 -08:00
parent 902f06c5c4
commit 2d942e970b
4 changed files with 35 additions and 17 deletions

View File

@ -47,7 +47,13 @@ func rawhandle(c *cli.Context, fn handlerFunc) (*etcd.Response, error) {
return nil, err
}
tr, err := getTransport(c)
if err != nil {
return nil, err
}
client := etcd.NewClient(endpoints)
client.SetTransport(tr)
if c.GlobalBool("debug") {
go dumpCURL(client)