用于构建Java应用程序的交互式shell的库 [英] Libraries for constructing an interactive shell for Java application

查看:129
本文介绍了用于构建Java应用程序的交互式shell的库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找Java的库,这将允许我创建一个交互式shell。我做了一些搜索,并没有发现很多。我发现的大多数是用于向我的应用程序添加命令参数解析的库,这对我没什么帮助。

I am looking for libraries for Java that will allow me to create an interactive shell. I have done some search around and have not turned up a whole lot. Most of what I have found is libraries for adding command argument parsing to my application which does not help me a lot.

我找到的最好的导致是一个名为<的库a href =https://code.google.com/p/cliche/>陈词滥调,它完全符合我的需要。问题是它太简单了。我正在寻找更具定制性的东西。

The best lead I have found is a library called Cliche which does exactly what I need. The problem is its too simple. I am looking for something that has more customization.

有没有人遇到过更先进的东西?

Has anyone come across something a little more advanced?

推荐答案

要考虑的选项:


  • javacurses / JCurses - 一个基于控制台的窗口工具包,类似于UNIX curses设计

  • swing-console 可能是合适的。您可以使用它来构建交互式shell。

  • JLine - 库类似于GNU readline的控制台输入

  • 几种JVM语言提供交互式 REPL环境,可以用作交互式shell,例如Clojure

  • javacurses / JCurses - a console-based windowing toolkit, similar to the UNIX curses design
  • swing-console might be appropriate if you want a console-style view / output in a Swing GUI window. you could use this to build an interactive shell.
  • JLine - library for console input similar to GNU readline
  • Several JVM languages offer an interactive REPL environment which can be used as an interactive shell, e.g. Clojure

这篇关于用于构建Java应用程序的交互式shell的库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆