State of the command line?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

State of the command line?

Kevin Burton-3
What's the state of the command line client (ZooKeeperMain)
... it seems a bit fragile.

Some thoughts.... you should probably ship it with a wrapper around rlwrap
so that readline supports.

You can just detect it in a bash script and enable it if it's installed....
should be able to get around GPL this way...

Also, it should have a %shell% prompt one would think.

... ls should return more like ls -al.

If a command fails it shouldn't print the full exception but should instead
print just the error (probably to stderr).

Though perhaps we won't actually use the shell in production so it doesn't
matter as much.


Kevin

--
Founder/CEO Spinn3r.com
Location: San Francisco, CA
AIM/YIM: sfburtonator
Skype: burtonator
Work: http://spinn3r.com
Reply | Threaded
Open this post in threaded view
|

RE: State of the command line?

Benjamin Reed-2
The command line is a very simple utility for testing and as an example of how to use the API.

these are good suggestions, you should document them in a Jira.

ben
________________________________________
From: [hidden email] [[hidden email]] On Behalf Of Kevin Burton [[hidden email]]
Sent: Saturday, January 03, 2009 7:54 PM
To: [hidden email]
Subject: State of the command line?

What's the state of the command line client (ZooKeeperMain)
... it seems a bit fragile.

Some thoughts.... you should probably ship it with a wrapper around rlwrap
so that readline supports.

You can just detect it in a bash script and enable it if it's installed....
should be able to get around GPL this way...

Also, it should have a %shell% prompt one would think.

... ls should return more like ls -al.

If a command fails it shouldn't print the full exception but should instead
print just the error (probably to stderr).

Though perhaps we won't actually use the shell in production so it doesn't
matter as much.


Kevin

--
Founder/CEO Spinn3r.com
Location: San Francisco, CA
AIM/YIM: sfburtonator
Skype: burtonator
Work: http://spinn3r.com