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

Full refactoring of shell config handling w/o globals #15

Merged
merged 4 commits into from
Nov 21, 2022

Conversation

ahochsteger
Copy link
Contributor

@ahochsteger ahochsteger commented Jun 10, 2022

  • no more globals for configs that clutter the code
  • refactoring-safe config parameter references
  • new shell commands 'config' and 'docs'
  • move env var docs to separate auto-generated file
  • update env var + shell command docs using './test-shell.sh update-docs'

BREAKING CHANGES:

  • rename commands get/set to propget/propset to resolve conflict with built-in command set (required to enable debug traces on errors)

* lib: refactor to use enum class for events
* lib: pass auto-reconnect behavior on disconnect
* shell: split wp initialization from connecting
* pass wp, wpdef into WattpilotShell

BREAKING CHANGEs:
* rename cmd get/set to propget/set (conflict with built-in cmd)
* no more globals for configs that clutter the code
* refactoring-safe config parameter references
* new shell commands 'config' and 'docs'
* move env var docs to separate auto-generated file
* update env var docs using './test-shell.sh update-docs'
@ahochsteger
Copy link
Contributor Author

ahochsteger commented Jul 3, 2022

@joscha82, may you merge this PR, it adresses parts of #20?
It currently blocks further improvements I have planned, esp. with respect to #20.

@ahochsteger
Copy link
Contributor Author

@joscha82 any chance that this PR get merged?

@joscha82
Copy link
Owner

@ahochsteger yes! sorry - was busy in the last weeks. Will merge the backloads now / next days.

@joscha82 joscha82 merged commit 3083d50 into joscha82:main Nov 21, 2022
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