RFC: Script development
Roman Rakus
rrakus at redhat.com
Wed Jul 3 08:38:42 UTC 2013
On 07/03/13 09:38, Jan Safranek wrote:
> o we need documentation (on wiki), how to create new subcommands
> + the part in /usr/libexec/lmi/cmd just registers new
> subcommands and parses command line, calling functions
> imported from/usr/lib/python2.7/site-packages/lmi/scripts/
What about to have filename defining the subcommand? It should simplify
things a lot.
Example:
/usr/libexec/lmi/account/list_user
/usr/libexec/lmi/account/create_user
/usr/libexec/lmi/account/delete_user
/usr/libexec/lmi/storrage/create_vg
...
pros:
- simplifies the process
- one file do one thing - the UNIX way
- transparency
cons:
- a lot of files to maintain
Any ideas, objections?
RR
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fedorahosted.org/pipermail/openlmi-devel/attachments/20130703/69aa2511/attachment.html>
More information about the openlmi-devel
mailing list