embedded-cli icon indicating copy to clipboard operation
embedded-cli copied to clipboard

Add onEmpty command binding

Open funbiscuit opened this issue 3 years ago • 0 comments

Currently on any user input something is called - either registered binding or general onCommand when given command is not registered. The only exception is if input empty (user pressed "enter" multiple times). In this case nothing is called. Add extra optional command binding - onEmpty which will be called when entered command is empty (or contains only whitespace).

Initial request by @Jeff-RavenLabs in https://github.com/funbiscuit/embedded-cli/discussions/18

funbiscuit avatar Nov 10 '22 19:11 funbiscuit