-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
CLI Enhancements #3897
Merged
Merged
CLI Enhancements #3897
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
c14210e
Use Colored UI if stdout is a tty
calvn 58be122
Add format options to operator unseal
calvn a1fcb87
Add format test on operator unseal
calvn e149184
Add -no-color output flag, and use BasicUi if no-color flag is provided
calvn 45627d6
Move seal status formatting logic to OutputSealStatus
calvn ae12135
Apply no-color to warnings from DeprecatedCommands as well
calvn fa462a4
Add OutputWithFormat to support arbitrary data, add format option to …
calvn 14e70dd
Add ability to output arbitrary list data on TableFormatter
calvn caae214
Clear up switch logic on format
calvn e0f96d6
Add format option for list-related commands
calvn c8cfcb5
Add format option to rest of commands that returns a client API response
calvn d2ba2fe
Remove initOutputYAML and initOutputJSON, and use OutputWithFormat in…
calvn 8f2a229
Remove outputAsYAML and outputAsJSON, and use OutputWithFormat instead
calvn 204180b
Remove -no-color flag, use env var exclusively to toggle colored output
calvn 2cd9e8e
Fix compile
calvn c9573ea
Remove -no-color flag in main.go
calvn 7ecec64
Add missing FlagSetOutputFormat
calvn 189f8c9
Fix generate-root/decode test
calvn 60184e9
Merge branch 'master-oss' into cli-enhancements
calvn a7225da
Migrate init functions to main.go
jefferai 2b3f18d
Add no-color flag back as hidden
jefferai 63d4957
Handle non-supported data types for TableFormatter.OutputList
calvn 53d4534
Merge branch 'cli-enhancements' of github.com:hashicorp/vault into cl…
calvn 4ff62dd
Pull formatting much further up to remove the need to use c.flagForma…
jefferai 3ff53bc
Minor updates
jefferai a81c42e
Remove unnecessary check
jefferai 79992f3
Fix SSH output and some tests
jefferai 07cf36e
Fix tests
jefferai 7982def
Make race detector not run on generate root since it kills Travis the…
jefferai 9ca29d3
Update docs
calvn df07a3d
Merge branch 'cli-enhancements' of github.com:hashicorp/vault into cl…
calvn 1583e23
Update docs
calvn 51a07e2
Merge branch 'master-oss' into cli-enhancements
jefferai 9b62480
Address review feedback
jefferai d0e35e1
Handle --format as well as -format
jefferai e4ae7ba
Merge branch 'master' into cli-enhancements
calvn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a
default
case returning an error here quoting that its an unknown type? This avoids panic when the data is actually cast to[]interface{}
below.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done below.