[ https://issues.apache.org/jira/browse/ZOOKEEPER-386?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12704832#action_12704832 ]
Henry Robinson edited comment on ZOOKEEPER-386 at 4/30/09 4:00 PM: ------------------------------------------------------------------- This patch adds readline support to ZooKeeperMain, plus a bunch of other stuff: auto-completion of commands and znodes, scrollable history, redo any of the last 10 commands, a prompt that displays the command count, optional surpression of watch notifications and defaults to localhost:2181 if no -server flag is given on the command line. Dropped / failed connections still fail fairly ugly, might be an idea to add a 'connect' command and catch the exceptions. This depends on JLine 0.9.94 (available here: http://sourceforge.net/project/showfiles.php?group_id=64033&package_id=61095&release_id=578593), and the patch includes an update to the buildfile to look for the jar in src/java/lib. I have another version without readline support that does most of the above stuff without scrollable history or tab auto-completion - it's not as nice to use as the readline enabled version. was (Author: henryr): This patch adds readline support to ZooKeeperMain, plus a bunch of other stuff: auto-completion of commands and znodes, scrollable history, redo any of the last 10 commands, a prompt that displays the command count, optional surpression of watch notifications and defaults to localhost:2181 if no -server flag is given on the command line. Dropped / failed connections still fail fairly ugly, might be an idea to add a 'connect' command and catch the exceptions. > improve c and java cli shells > ----------------------------- > > Key: ZOOKEEPER-386 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-386 > Project: Zookeeper > Issue Type: Improvement > Components: c client, java client > Reporter: Patrick Hunt > Priority: Minor > Fix For: 3.2.0 > > Attachments: patch.txt > > > copied from the following comments by Vegard > https://issues.apache.org/jira/browse/ZOOKEEPER-364?focusedCommentId=12696002&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_12696002 > ------------------------------------------------------------ > Possible improvements: > Default host list to localhost:2181 when not given. > Don't print a ton of debug, it looks like both cli_mt and zkCli.sh does this. > Make a simple ls that lists subnodes one line at a time and a simple cat that > lists only the node content, simple put etc. > Shell with gnu readline capabilities and tab completion on node names would > be a big improvement of usability during testing and debugging. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.