Tuesday, November 23, 2010

The command aliases is implemented.

 The command can have the aliases. The resulting alias is equal to the original command except the name of command, help text and the value of internal variable ${__cmd}.

See the http://code.google.com/p/klish/wiki/command_alias for details.

Thursday, November 18, 2010

The shebang settings is documented.

See the http://code.google.com/p/klish/wiki/shebang for the details.

The restoring of command's context is documented.

The restoring of command's context is documented. When the hierarchy of nested views is built the lower views inherit the commands from the higher views often. You can execute these commands directly if the same commands was not redefined in the current view. It's necessary to set the command's native context before its execution.

See the http://code.google.com/p/klish/wiki/nested_views#Restore_the_command_context and http://code.google.com/p/klish/wiki/VIEW for the details.

Tuesday, November 16, 2010

The conditional variables is documented.

The conditional variables is documented. The parameter can be dynamically enabled or disabled depending on the condition. The condition have the syntax same as standard /bin/test utility. So the parameter visibility can depend on the previous parameters values or internal variables.

See the http://code.google.com/p/klish/wiki/conditional_param for documentation.

Thanks to lff.frm.

The locking mechanism is documented.

The locking mechanism is documented. The locking mechanism allows to execute several instances of clish utility (or another programs based on libclish library) simultaneously without conflicts.


Wednesday, November 10, 2010

The klish-1.3.0 is out.


* The klish specific examples were added.
* The konf utility was developed for the communicating to konfd daemon from the command line. It can set, unset entries into the user config and get the current config state.
* The libclish API was changed. The clish shell is not needed to be executed within thread. The clish utility doesn't use threads now.
* The locking mechanism is implemented. It is used to synchronize different instances of clish or utilities based on libclish libarary. The option to disable locking is implemented in clish utility because it can be executed from another clish.
* The conditional PARAMs is implemented. The PARAM can be enabled or disabled relying on result of condition evaluation. The 'test' field is added to PARAM tag. The 'test' field syntax is similar to /bin/test utility. So the visibility of parameter can depend on previous PARAMs values.
* The shebang is implemented. The shebang is implemented for the command's ACTION. So the script can be executed using different scripting languages.
* The --dry-run (-d) option is implemented for the clish utility. The ACTION will not be actually executed. For debug purposes.
* The --background (-b) option is implemented in clish utility. It means non-interactive/interactive mode of shell execution. The corresponding internal variable ${__interactive} can be used in ACTION script.
* The another additional command line options for the clish utility and konfd daemon were implemented.
* The XMLs and XML schema were fixed and validated.
* Bugfix.

Thanks to lff.frm, Rahul Panwar, my co-workers and others for the bug reporting. Thanks lff.frm for klish specific XML examples.