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 output options for tsh ls #4390

Merged
merged 1 commit into from
Oct 1, 2020

Conversation

Joerger
Copy link
Contributor

@Joerger Joerger commented Sep 29, 2020

Changes:

  • New flag --output for tsh ls - possible values are json, names, text (default)
  • Refactored node printing functions and logic to be simpler and more readable

Additional notes:

  • tsh ls will ignore -v if --output is provided, unless output=table (default)
  • an error will be returned if an invalid output is provided

resolves #3660
Related: #1696

tool/tsh/tsh.go Outdated Show resolved Hide resolved
tool/tsh/tsh.go Outdated Show resolved Hide resolved
tool/tsh/tsh.go Outdated Show resolved Hide resolved
tool/tsh/tsh.go Outdated Show resolved Hide resolved
tool/tsh/tsh.go Outdated Show resolved Hide resolved
@Joerger Joerger force-pushed the Joerger/tsh-ls-machine-readable-output branch from cc0a6db to 9fe3045 Compare October 1, 2020 19:12
@Joerger Joerger merged commit d1d6118 into master Oct 1, 2020
@Joerger Joerger deleted the Joerger/tsh-ls-machine-readable-output branch October 6, 2020 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support machine-readable output for tsh ls
4 participants