Comment 3 for bug 1290018

Revision history for this message
Rahul Ranjan (rahul-rrixe) wrote :

@Terry yeah I am working for a application i.e. Apache-libcloud. We are trying to have interactive construct like this

 <main> <app> <command> <sub command>

[user@localhost] libcloud
(libcloud) <service> <resource> <action> [options]

service will have several resources and then each resources will have some actions accompaniesd with global options.

for e.g. if i want to know about registry list of node and the result should be in json format, the command structure would be like this

(libcloud) register node list -f json

@Doug I couldn't find documenation on subcommands, ofcource cliff provide this facility with inheritance but there should be some generic way to do this.
Also if you can guide me i will make upstream for that.