I wonder if we should use a more resouce based syntax. Currently we use the part before the colon as a kind of domain qualifier like:
"osgi:" or "admin:". How about changing that to a resource based syntax:
"servers" instead of admin:list
"servers create" instead of admin:create
"servers.myserver" would show the details of myserver
"servers.myserver delete" instead of admin:destroy myserver
"servers.myserver stop" instead of admin:stop myserver
"servers.myserver.rmiport" would show the rmi port of myserver
"servers.myserver.rmiport 10000" would set the rmi port of myserver
So this would be a bit like rest on the command line. Tab completion could be used to help typing the server name.
One advantage of this is that you could create nicely looking scripts to configure stuff:
This could even be combined with the scope ideas :
For sure this syntax is not applicable for all commands but I think every crud operations around resources could benefit.