Commit Graph

16 Commits

Author SHA1 Message Date
Shohei YOSHIDA 0b6e064850
Update links 2022-11-23 13:31:48 +09:00
midchildan 1f5e5ff471
knife: improve completion for Chef Vault commands 2021-11-30 00:52:28 +09:00
midchildan 392487b0fa
knife: improve code quality
- Quote variables
- Remove unnecessary subshells
- Use local variables
- Unify _chef_*s_remote functions
- Prefix auxillary functions with _knife_*
- Use _call_program when invoking the knife command to silence stderr
  output
2021-11-29 21:58:53 +09:00
midchildan da42a24a07
knife: backport #531 and #131 2021-11-19 00:15:06 +09:00
midchildan b5de3d53e0
knife: sync with oh-my-zsh 2021-11-19 00:02:10 +09:00
Luxing Huang 59f97c36c9 fix knife cannot ls a path problem. (double quotes is the issue) 2017-09-20 16:39:46 -04:00
nicoulaj 550a261d97 Merge pull request #350 from mmckinst/missing_licenses
add missing licenses
2016-02-04 22:09:43 +01:00
Mark McKinstry dada11cdda add copyright to files copied from oh-my-zsh
ref issue #207

copied from
https://github.com/robbyrussell/oh-my-zsh/blob/master/MIT-LICENSE.txt
2015-09-30
2015-09-30 23:08:23 -04:00
Gabriel Rosendorf 9d118e8e3b added completion for knife diff 2015-01-06 09:30:12 -05:00
Mark Cornick a017d3f212 Add completion for knife user commands
These commands were added in Chef 11.0.0.
2013-03-23 10:20:43 -04:00
Julien Nicoulaud b70c7f9799 Merge pull request #109 from markcornick/knife_environment
Update _knife with environment sub-commands
2012-10-04 05:09:39 -07:00
Mark Cornick 6b8d711aec Update _chef_X_remote functions for current knife output
The format of the output from "knife X list" commands has changed since
this completion script was written.
2012-10-02 12:59:40 -04:00
Mark Cornick 3c833c6491 Fix _chef_environments_remote for current knife output
All of these functions need to be fixed, but I'll fix the others in a
different branch.
2012-10-02 12:55:08 -04:00
Mark Cornick 31ec2904f0 Update _knife with environment sub-commands
Environments were added in Chef 0.10.
2012-10-02 12:46:15 -04:00
Aaron Schrab 3f55429b0e Move modelines to end of file
Having a vim modeline or emacs local variable line somewhere in the
middle of the file isn't really helpful.  By default, vim will only
check the first and last 5 lines of a file for a modeline (assuming the
modeline option is enabled).  Emacs is even more strict about the type
of local variable line that was in use, it will only check the first
line of the file or the second line if the first line specifies a script
interpreter (which isn't the case here).

Move the vim modeline to the end of the file so that it can actually be
found by vim but is out of the way for editing.  For emacs more work is
required, convert that to the more verbose Local Variables syntax which
emacs will look for starting 3000 characters from the end of the file.

Also there is no zsh mode for emacs (according to
zsh-users/zsh-completions#75), use the "Shell-Script" mode instead.
This seems to automatically detect that the files are for zsh.

I'm not an emacs user, so I haven't tested that portion much.  But, this
does at least improve the syntax highlighting there.
2012-08-23 11:18:49 -04:00
Julien Nicoulaud 10ffeb0c15 [BREAKING CHANGE] Move compdefs to own directory (to ease packaging and
avoid bloating users fpath with unneeded files such as README.md)
2012-08-01 13:23:11 +02:00