Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move CliRepl into main package and adapt it's API to be suitable for Node.js too #73

Open
carnesen opened this issue Jun 22, 2020 · 0 comments
Labels
task Something that needs to get done
Milestone

Comments

@carnesen
Copy link
Owner

carnesen commented Jun 22, 2020

The CliRepl in the cli-website module has really worked out well. The autocompletion is super slick. That feature is worthy of promotion to the main module @carnesen/cli and it should be possible too since we only lightly use the Terminal interface from XTerm.js. To do so we need to make CliRepl pure dependency-free JavaScript and suitable for Node.js too. Probably it should just be an ordinary object factory too like CliBranch etc. instead of a class like it is today.

Use cases:

  • Browser: Dedicated browser CLIs like https://cli.carnesen.com
  • Node.js: my-cli repl: The CliRepl autocompletion is really good and useful even when we have productized shell autocompletion. There will be really slick things we can do in the custom REPL that wouldn't be possible in a normal shell REPL. Think of it like the mysql or redis-cli REPLs.
@carnesen carnesen added the task Something that needs to get done label Jun 22, 2020
@carnesen carnesen changed the title Try to run CliRepl in Node.js Make the CliRepl API universal (suitable for Node.js too) and move it into main package Jul 4, 2020
@carnesen carnesen added this to the 0.6.0 milestone Jul 4, 2020
@carnesen carnesen changed the title Make the CliRepl API universal (suitable for Node.js too) and move it into main package Move CliRepl into main package and adapt it's API to be suitable for Node.js too Jul 4, 2020
@carnesen carnesen modified the milestones: 0.6.0, Backlog Aug 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
task Something that needs to get done
Projects
None yet
Development

No branches or pull requests

1 participant