[openstack-dev] bash-completion in nova client

Anne Gentle anne at openstack.org
Tue Aug 14 13:52:33 UTC 2012


Thanks Kiall - Boy was my guess wrong!

I guess you have to tab to complete the sentence, ha ha ha.

Anne

On Mon, Aug 13, 2012 at 11:56 AM, Kiall Mac Innes <kiall at managedit.ie> wrote:
> So - While I can't think of an elegant sentence to replace that.. I can
> describe what it does!
>
> It prints out a list of all possible commands and flags that the `nova`
> command can accept, This can be used by bash to facilitate tab-completion of
> commands.
>
> e.g. typing `apt-get i<tab>` at a bash prompt on Ubuntu will auto-complete
> the command to `apt-get install `.
>
> The output from `nova bash-completion` should be used as a hint to bash to
> allow, for example `nova re<tab>` to auto-complete to `nova reboot `.
>
> (Side note.. It looks like this is broken in the current Ubuntu precise
> packages..)
>
> Thanks,
> Kiall
>
>
> On Mon, Aug 13, 2012 at 4:28 PM, Anne Gentle <anne at openstack.org> wrote:
>>
>> Anyone know what the rest of this sentence should be?
>>
>> bash-completion     Prints all of the commands and options to stdout so
>>                         that the
>>
>> My guess is:
>>
>> Prints all the commands and options to stdout so that a user can
>> troubleshoot an instance.
>>
>> What number of lines do you get? If bash-completion is using the
>> os-getConsoleOutput it needs a number of lines length parameter. I'd
>> like to edit "all" in the descriptive sentence if it's not really
>> "all."
>>
>> Thanks,
>> Anne
>>
>> _______________________________________________
>> OpenStack-dev mailing list
>> OpenStack-dev at lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>



More information about the OpenStack-dev mailing list