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

Support configuration files - At least for output formatting options (colors) #47

Open
rainerschoe opened this issue Jul 3, 2019 · 2 comments · May be fixed by #141
Open

Support configuration files - At least for output formatting options (colors) #47

rainerschoe opened this issue Jul 3, 2019 · 2 comments · May be fixed by #141

Comments

@rainerschoe
Copy link
Member

rainerschoe commented Jul 3, 2019

Describe the solution you'd like
It would be nice to have a way to persistently configure default behavior of the tool:

  • Color-Classes for output formatting
  • Timeouts
  • Greeting message at start of program
  • Default TCP port
  • Grammar caching enable/disable
  • Certs / Keys for secure channels

This configuration obviously needs to be stored on the file-system.
If no configuration is found, default values should be used.

Describe alternatives you've considered
specify all config options on command-line. But this is really annoying, as it forces the user to implement wrappers.

Describe why you think this feature is useful for gWhisper users
Especially for colors this is important, as the used color-set depends on the selected background color of the users terminal. Black on black or white on white does not make sense.

@rainerschoe rainerschoe changed the title Provide way to have individual configuration of default values Support configuration files - At least for output formatting options (colors) Jul 3, 2019
@rainerschoe rainerschoe added this to the v0.3.1 milestone Aug 12, 2019
@rainerschoe
Copy link
Member Author

this might also be a prereq for secure channel support #6 as we need some way to store credentials.

@rainerschoe
Copy link
Member Author

Idea: we could make CLI Options and config files basically the same thing.
I.e. The config file is parsed with a sub-graph of the grammar and then added to the parse-tree of the options grammar.

@rainerschoe rainerschoe removed this from the v0.4 milestone Apr 8, 2021
@anna-riesch anna-riesch self-assigned this Jun 3, 2022
@anna-riesch anna-riesch linked a pull request Aug 29, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants