문제

We have recently created a tool which allows to talk to Google App Engine via command line, like that:

> print KEY("Domain", "mycustomer.com")
{
  "domainAdmin" : "admin@mycustomer.com",
  "maxNbUsers" : 12,
  "trialExpires" : "2013-05-31 12:43:02",
  "status" : "ACTIVE"
}

This is an SQL-like command line application which allows to work with Google Datastore without writing code in Python/Java/Go/PHP.

The problem is that this tool does not save history of previous commands. You have to enter them manually every time.

I wonder if there is a wrapper which could remember history of commands which were passed to a child Java process? Or may be there is an even smarter way to add history file support for this application?

올바른 솔루션이 없습니다

다른 팁

The ReadLine part of jmxsh with its History support looks right for this job. It mentions jline dependencies, so your mileage may vary. http://java-readline.sourceforge.net/ and https://code.google.com/p/jmxsh/source/browse/trunk/src/jmxsh/Readline.java

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top