abiosoft / ishell

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

Expose ReadlineWithDefault #136

Closed terwey closed 4 years ago

terwey commented 4 years ago

Hi,

I would like to use ReadlineWithDefault(what string) from the Readline library. https://github.com/abiosoft/readline/blob/master/readline.go#L258-L261

Currently only Readline() is exposed but I want to give the user a default value.

What is the best approach? Extend ishell and send a PR?

Thanks.

terwey commented 4 years ago

Never mind, I see it's in the master branch: https://github.com/abiosoft/ishell/compare/v2...master