Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for formating output of ls command in json or extended fo… #5999

Merged
merged 1 commit into from
Jul 21, 2016
Merged

Add support for formating output of ls command in json or extended fo… #5999

merged 1 commit into from
Jul 21, 2016

Conversation

jlamillan
Copy link
Contributor

This change keeps the existing formatting for the default case and defers to printResponseKey when the user has explicitly specified something else via --output global option for ls.

Fixes #5993

I also could do something similar with mkdir and and rmdir where they'd continue to behave the same as they do today unless the user has explicitly indicated otherwise with --output.

@xiang90
Copy link
Contributor

xiang90 commented Jul 20, 2016

lgtm. I think we need to change the commit message to etcdctl: Add support for formating output of ls command in json to pass CI.

@jlamillan
Copy link
Contributor Author

Thanks for tip about the commit message. The failure on Semaphore doesn't look related. Is there a way to rerun?

The ls command will check for and honor json or extended output formats.

Fixes #5993
@xiang90 xiang90 merged commit 214c1e5 into etcd-io:master Jul 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants