summaryrefslogtreecommitdiffstats
path: root/cmd/mattermost/commands/webhook.go
diff options
context:
space:
mode:
authorMukul Rawat <mukulsrawat@gmail.com>2018-10-16 03:36:46 +0530
committerJesse Hallam <jesse.hallam@gmail.com>2018-10-15 18:06:46 -0400
commit80153ef87379040ff1c9ac6f11a7063b743a3fb2 (patch)
tree104f3af889e1b2f583b9ba01359b59a9f7ecc403 /cmd/mattermost/commands/webhook.go
parent1cdf717446d79191701949a97557f801681bc278 (diff)
downloadchat-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 'cmd/mattermost/commands/webhook.go')
0 files changed, 0 insertions, 0 deletions