aboutsummaryrefslogtreecommitdiffstats
path: root/src/_knife
diff options
context:
space:
mode:
authorMark Cornick <mark@markcornick.com>2012-10-02 12:59:40 -0400
committerMark Cornick <mark@markcornick.com>2012-10-02 12:59:40 -0400
commit6b8d711aeca9282e9bb8fbcdd68e9f45a5e32638 (patch)
tree6426c6e65d7069ce66c2ef3cbdffdc1a9e3da913 /src/_knife
parentMerge pull request #108 from spk/_gem_push (diff)
downloadzsh-completions-6b8d711aeca9282e9bb8fbcdd68e9f45a5e32638.tar
zsh-completions-6b8d711aeca9282e9bb8fbcdd68e9f45a5e32638.tar.gz
zsh-completions-6b8d711aeca9282e9bb8fbcdd68e9f45a5e32638.tar.bz2
zsh-completions-6b8d711aeca9282e9bb8fbcdd68e9f45a5e32638.tar.lz
zsh-completions-6b8d711aeca9282e9bb8fbcdd68e9f45a5e32638.tar.xz
zsh-completions-6b8d711aeca9282e9bb8fbcdd68e9f45a5e32638.tar.zst
zsh-completions-6b8d711aeca9282e9bb8fbcdd68e9f45a5e32638.zip
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.
Diffstat (limited to 'src/_knife')
-rw-r--r--src/_knife12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/_knife b/src/_knife
index 993454b..def6eea 100644
--- a/src/_knife
+++ b/src/_knife
@@ -155,27 +155,27 @@ _knife_options3() {
# The chef_x_remote functions use knife to get a list of objects of type x on the server
_chef_roles_remote() {
- (knife role list | grep \" | awk '{print $1}' | awk -F"," '{print $1}' | awk -F"\"" '{print $2}')
+ (knife role list | awk '{print $1}')
}
_chef_clients_remote() {
- (knife client list | grep \" | awk '{print $1}' | awk -F"," '{print $1}' | awk -F"\"" '{print $2}')
+ (knife client list | awk '{print $1}')
}
_chef_nodes_remote() {
- (knife node list | grep \" | awk '{print $1}' | awk -F"," '{print $1}' | awk -F"\"" '{print $2}')
+ (knife node list | awk '{print $1}')
}
_chef_cookbooks_remote() {
- (knife cookbook list | grep \" | awk '{print $1}' | awk -F"," '{print $1}' | awk -F"\"" '{print $2}')
+ (knife cookbook list | awk '{print $1}')
}
_chef_sitecookbooks_remote() {
- (knife cookbook site list | grep \" | awk '{print $1}' | awk -F"," '{print $1}' | awk -F"\"" '{print $2}')
+ (knife cookbook site list | awk '{print $1}')
}
_chef_data_bags_remote() {
- (knife data bag list | grep \" | awk '{print $1}' | awk -F"," '{print $1}' | awk -F"\"" '{print $2}')
+ (knife data bag list | awk '{print $1}')
}
# The chef_x_local functions use the knife config to find the paths of relevant objects x to be uploaded to the server