[jboss-as7-dev] proposed cli changes

Alexey Loubyansky alexey.loubyansky at redhat.com
Mon Mar 7 09:41:01 EST 2011



On 03/07/2011 03:33 PM, Alexey Loubyansky wrote:
> Max, Emanuel and I discussed the usability aspects of the cli today. We
> agreed on the following:
>
> 1) drop the '/' prefix for the commands;
>
> 2) instead of '~' signifying the root node use '/';
>
> 3) instead of ',' as a node separator in the address (node path) use
> '/'. so the format of an operation will look like
>
> [node-type=node-name (/node-type=node-name)*] : operation-name
> ['('param=value (,param=value)*')']
>
> This (2 and 3) will make the path look more linux-like, so hopefully
> more friendly for an admin.
>
> 4) in the same spirit, the tab-completion for operations will start with
> './', e.g. './subsystem=web/connector=http:read-resource'

or '/' to start from the root (if the current address (prefix) is 
something other than the root). e.g.

[subsystem=web/connector=http] /subsystem-threads:read-resource

> 5) for the command names, Max likes
> cn (change node) - current /prefix or /to.
> cwn (current working node) - again current /prefix or /to w/o arguments.
>
> I'd even go for cd to change the node. The reason I didn't add it
> originally was 'directory' doesn't belong here. But cd is kind of habit
> for this kind of thing, so I could add it as an alias.
>
> Any objections or suggestions?
>
> Thanks,
> Alexey
> _______________________________________________
> jboss-as7-dev mailing list
> jboss-as7-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev



More information about the jboss-as7-dev mailing list