mendelt / cmdr

Cmdr is a library for building line-oriented text-based user interfaces in Rust.
Apache License 2.0
15 stars 1 forks source link

Update the cmdr macro to allow overriding scope trait methods #1

Closed mendelt closed 5 years ago

mendelt commented 5 years ago

Allow overriding prompt, empty and default when using the cmdr command.

mendelt commented 5 years ago

If a client implements a method in the cmdr decorated impl block with the same name as one of the overridable functions in the Scope trait the cmdr macro should create a stub in the Scope implementation passing through the call to the client-method.