Question: Can this be used outside of PowerShell? · Issue #1045 · PowerShell/PSReadLine · GitHub
Skip to content

Question: Can this be used outside of PowerShell? #1045

Open

Description

@avestura

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.

Activity

  1. lzybkr commented on Sep 13, 2019

    @lzybkr
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions