mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
fixing chef_*_remote auto completes in knife plugin
This commit is contained in:
parent
7c36ef7faa
commit
92b51de6f6
1 changed files with 6 additions and 6 deletions
|
|
@ -138,27 +138,27 @@ _knife_options3() {
|
||||||
|
|
||||||
# The chef_x_remote functions use knife to get a list of objects of type x on the server
|
# The chef_x_remote functions use knife to get a list of objects of type x on the server
|
||||||
_chef_roles_remote() {
|
_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() {
|
_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() {
|
_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() {
|
_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() {
|
_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() {
|
_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
|
# The chef_x_local functions use the knife config to find the paths of relevant objects x to be uploaded to the server
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue