abiosoft / ishell

Library for creating interactive cli applications.
MIT License
1.68k stars 195 forks source link

Add NewWithReadline to have a shell with custom readline Instance #105

Closed pierreN closed 5 years ago

pierreN commented 5 years ago

This PR creates a new helper function NewWithReadline in ishell.go to allow users to create a shell instance with a custom readline instance. Plus we use this function in NewWithConfig to refactor code.

I needed that in a project to call some member methods of the readline instance.

I've been using ishell for a few weeks now, nice and clean project, thanks!

pierreN commented 5 years ago

Thanks!