Closed gegu closed 4 years ago
The documentation errors was fixed.
what happens, if the screenSwitchOptions are left empty but the screen config requests it? We should somehow handle this error.
This must be handled by the implementer in screen.init
. I've added the logger
-object as additional argument init(options, logger)
.
The example has been extended to show how argument checking works.
Nice, I like it. I think this is a very flexible implementation, even for future screen configurations.
Once this PR is merged, I'll adapt #94
Dynamic initialization of commands for the screen.