Question

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?

No correct solution

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top