There was mix of descriptions with and without trailing periods.
For short phrases maybe a period is not needed, but some
complete sentences were missing.
Since it was a mix I just added the periods to all.
Now there are descriptions within spec files that are not consistent too,
but I don't look at that now.
This was not reviewed.
- only set a prompt if we have an interactive terminal
- be a bit less verbose on errors
in case of a socket error, only print that error, and not the extra (is it running?) message.
FailToLogin() exception is no longer printed (the methods that raise it already print the real error themselves)
Unexpected Exceptions are now printed *more* verbose, i.e. with a full stacktrace instead of just a message. If we want to 'expect' more error types (and only print a short message that speaks for itself, to look more userfriendly), we should add those explicitely, and not use 'except Exception'.
This reverts commit a669db434d.
The reverted commit was introduced due to misoperation possibly with
git-new-workdir, and actually reverted previous changes made on master.
By reverting it we now recover these lost changes.
Most obvious change is for the command "Stats show", where the blob of stats data is now printed ina more readable fashion.
Also removed the print of 'send the command' line, and empty results are not printed at all
while i was at it, improved printing/indentation of help data to make output more readable
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac384@4150 e5f2f494-b856-4b98-b285-d166d9295462
always show map contents for 'config show <map>', not just the map name
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac384@4123 e5f2f494-b856-4b98-b285-d166d9295462
if the identified item is a map, show the entries
if it is a list, show the items with an index
(thinking about having a third one; if the list consists of map items, show the entries of those too, but we need list addressing (#405) to do that right)
also added a show_json command which simply prints the complete item and all its children in JSON format
temporarily added a few fake config_data items to Auth to play around with. we'll need to remove these before merge later
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac384@3443 e5f2f494-b856-4b98-b285-d166d9295462
(coded by tingting, reviewed partly by shane, the rest by me)
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@2681 e5f2f494-b856-4b98-b285-d166d9295462
added 'have_specification()' to MultiConfigData class
+tests of course
although bindcmd seems to be lacking much in the test department... (fitted it kinda-sorta into bindctl_test right now)
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac99@2643 e5f2f494-b856-4b98-b285-d166d9295462
specfiles must now be strict JSON (i.e. no single quotes around strings but double quotes, no comma after the last element of a map or list, and true/false instead of True/False), since the python json parser is more strict than the C++ one.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@2541 e5f2f494-b856-4b98-b285-d166d9295462
json has a few things tiny bit different, and the parser in python is stricter than absolutely necessary, so had to update a few spec and test data files
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac284@2441 e5f2f494-b856-4b98-b285-d166d9295462
Command parser only do minimal check. now parameter value can be a sequence of non-space characters, or a string surrounded by quotation marks(these marks can be a part of the value string in escaped form)
Make error message be more friendly.(if there is some error in parameter's value, the parameter name will be provided)
2. Refactor function login_to_cmdctl() in class BindCmdInterpreter.
Avoid using Exception to catch all exceptions.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac220@2108 e5f2f494-b856-4b98-b285-d166d9295462
1. When cmdctl get the command from bindctl/webgui, cmdctl need first check if the the value of command parameters conforms to its specification file.
2. Bindctl should check command paramters' value and type before sending them out. (it helps user to correct its command immediately)
3. Add API function 'convert_type()' to lib/config/config_data,
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/likun-value-check@1911 e5f2f494-b856-4b98-b285-d166d9295462
(module descriptions in spec files)
See also https://bind10.isc.org/ticket/90
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1856 e5f2f494-b856-4b98-b285-d166d9295462
if the directory cannot be make or the file cannot be written the default isn't stored (an error is printed but the session continues)
read/write permissions are for user only
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1560 e5f2f494-b856-4b98-b285-d166d9295462