Skip to content

Add verbose config option#16

Merged
kieselsteini merged 3 commits intokieselsteini:masterfrom
vascocosta:verbose-config
Jun 11, 2019
Merged

Add verbose config option#16
kieselsteini merged 3 commits intokieselsteini:masterfrom
vascocosta:verbose-config

Conversation

@vascocosta
Copy link
Copy Markdown
Contributor

Hello and thanks for developing this amazing gopher client for all command line minimalists.

In its current state this client is just about perfect for me, with one small exception: me and some people I know that also use cgo would like to have a simple config option to make output less verbose, which is especially useful when the terminal has limited vertical real estate.

To this end I've committed a simple change on my local fork which adds a config option called verbose which the user can set to either true/on or false/off. Depending on the value, cgo will either display or hide messages like "downloading..." "executing..." which although useful might clutter the display. The default value is set to true, meaning this is opt-in.

You can see an illustration of verbose true on the left and verbose false on the right here:

https://i.imgur.com/3KvONWw.png

Feel free to accept/modify this pull request into your repo's master branch if you find this could be a useful option to add to this great client.

Thanks!

@kieselsteini kieselsteini changed the base branch from master to develop May 31, 2019 07:21
@kieselsteini
Copy link
Copy Markdown
Owner

Hello thank you for contributing.
I've changed the base branch to develop as I want the master to reflect "stable" versions :)
Are you going to add the new option into the man page as well or should I add this?

Thanks, Sebastian

@kieselsteini kieselsteini changed the base branch from develop to master May 31, 2019 07:44
@kieselsteini
Copy link
Copy Markdown
Owner

Added some documentation, adjusted the the config file and used a function for checking the value instead of strcasecmp (there might be some more "bool" options in future).

@vascocosta
Copy link
Copy Markdown
Contributor Author

Thanks!

Good idea creating that function. Actually I realised it was a bool and thought about creating a macro or function for it as well, but then I wanted to leave that up to you for better integration with what you have in mind for future options.

@kieselsteini kieselsteini merged commit 401901d into kieselsteini:master Jun 11, 2019
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.

2 participants