[chef] Re: Re: Knife bash completion


Chronological Thread 
  • From: Avishai Ish-Shalom < >
  • To:
  • Subject: [chef] Re: Re: Knife bash completion
  • Date: Wed, 19 Jan 2011 19:47:41 +0200
  • Organization: FewBytes Technologies

Thanks.

One thing I forgot to mention is the CHEF_REPOS variable. If you want
completion for your cookbooks on the `knife cookbook upload` command set
this variable as an array pointing to your chef cookbook directories
like so:

export CHEF_REPOS=( /home/avishai/chef-repo/site-cookbooks
/home/avishai/chef-repo/cookbooks )

Regards,
Avishai


On 01/19/2011 07:22 PM, Gilles Devaux wrote:
> You Rock!
>
> Thanks a lot
>
> On Wed, Jan 19, 2011 at 8:41 AM, Avishai Ish-Shalom
> < >
>  wrote:
>> Attached is a bash completion script for knife. 1st level command
>> completion is fast (and hardcoded), nth level is read from `knife sub
>> command --help` so it's a little slow.
>>
>> If anyone feels like adding feature, please do.
>>
>> --
>> Regards,
>> Avishai Ish-Shalom
>>
>>

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature




Archive powered by MHonArc 2.6.16.

§