[jboss-as7-dev] cli: default tab completion list

Brian Stansberry brian.stansberry at redhat.com
Tue Oct 25 13:04:59 EDT 2011


Note the suggestion is to prefix them with : so the text is what the 
user would have to actually type. So they would be naturally segregated 
in the list.

There are a number of low-level commands that are going to be routinely 
used, :read-attribute, :read-resource etc. So people are going to be 
conscious of low-level commands and IMO hiding them doesn't make much 
sense.  Unless there is a high level command that does the same thing as 
all the regularly used low level ones.

On 10/25/11 12:23 PM, Alexey Loubyansky wrote:
> WRT https://issues.jboss.org/browse/AS7-2243
> Tab completion for operations should show low-level operations
>
> Brian suggests to include operations in the list of commands shown by
> the tab completion when the line is empty.
>
> The original idea was to make an accent on the commands with the hope
> that operations will be used only in special/advanced cases. Which is
> still the direction to follow.
> So, by default the cli is in the command completion mode.
> Operation request completion is triggered by '/', './' or ':'.
>
> This is actually consistent with the bash shell too, where by default
> you get a list of commands, scripts are not included, you'd have to
> start with './'. Although, './' is listed there before all the commands
> as an option, which is not the case in the cli.
>
> IMO, the current impl is cleaner.
>
> Votes, suggestions?
>
> Thanks,
> Alexey
> _______________________________________________
> jboss-as7-dev mailing list
> jboss-as7-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev


-- 
Brian Stansberry
Principal Software Engineer
JBoss by Red Hat


More information about the jboss-as7-dev mailing list