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!
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!