Question: Can this be used outside of PowerShell?
Hello
I want to know if I can use PSReadLine as a .NET library for creating a customized REPL for F#.NET.
This module already has tons of useful features like Syntax highlighting, auto-complete, etc which reimplementing them using basic .NET Console class seems to be reinventing the wheel.
Is using this lib for such a task (building a customized REPL for another .NET Language other than PowerShell) feasible or not?
Thank you.
It would take some refactoring to make PSReadLine usable outside of PowerShell. I do think that would be useful though - I've considered doing this for fsi.
I like the approach taken in rustyline, based on Linenoise. For example, syntax coloring, completion, and hints (a feature missing in PSReadLine) are implemented as traits (an interface in the .Net world).
It might be worth wrapping one of these libraries in .Net. I actually considered doing a proof of concept with rustyline to see how well hinting might work.