diff options
author | Mukul Rawat <mukulsrawat@gmail.com> | 2018-10-16 03:36:46 +0530 |
---|---|---|
committer | Jesse Hallam <jesse.hallam@gmail.com> | 2018-10-15 18:06:46 -0400 |
commit | 80153ef87379040ff1c9ac6f11a7063b743a3fb2 (patch) | |
tree | 104f3af889e1b2f583b9ba01359b59a9f7ecc403 /vendor/go.uber.org/zap | |
parent | 1cdf717446d79191701949a97557f801681bc278 (diff) | |
download | chat-80153ef87379040ff1c9ac6f11a7063b743a3fb2.tar.gz chat-80153ef87379040ff1c9ac6f11a7063b743a3fb2.tar.bz2 chat-80153ef87379040ff1c9ac6f11a7063b743a3fb2.zip |
[MM-12362] Add CLI command 'config show' (#9536) (#9564)
* Add the subcommand by creating a new Command instance.
* Implemented the structure of the subcommand function.
* Register our new command
* Write some helper functions
* finish the pretty print function
* write some test for config show
* Refactor and extract the tab printing functionality in its own function
* Use app.Config() to create our config object & accept incoming changes
* Removed reading the file, make helper functions return string and perform printing inside the command
* Remove the previous code for checking presence of arguments and use 'cobra.NoArgs()' instead
* Remove named return and instead declare the variable and then return it.
* Remove printTab function and simplify printing out tabs using strings.Repeat
* Add some functions to test the output
* Update the usage and remove a comment
* Update the print
Diffstat (limited to 'vendor/go.uber.org/zap')
0 files changed, 0 insertions, 0 deletions