summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2019-01-22 12:50:40 -0800
committerTim Smith <tsmith@chef.io>2019-01-22 12:50:40 -0800
commitc89b4095fe4601df9f1b04d44a11fd6211355374 (patch)
tree065a9d2adc7cd86e74ce8907781b0f9d962fae66
parentf6cc746ee00f76608d9b0254d5c00244b228fcd6 (diff)
downloadchef-c89b4095fe4601df9f1b04d44a11fd6211355374.tar.gz
Hide knife cookbook site & null by setting them to deprecated category
This keeps these commands out of the help text. Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/knife/cookbook_site_download.rb2
-rw-r--r--lib/chef/knife/cookbook_site_install.rb2
-rw-r--r--lib/chef/knife/cookbook_site_list.rb2
-rw-r--r--lib/chef/knife/cookbook_site_search.rb2
-rw-r--r--lib/chef/knife/cookbook_site_share.rb2
-rw-r--r--lib/chef/knife/cookbook_site_show.rb2
-rw-r--r--lib/chef/knife/cookbook_site_unshare.rb2
-rw-r--r--lib/chef/knife/null.rb3
8 files changed, 10 insertions, 7 deletions
diff --git a/lib/chef/knife/cookbook_site_download.rb b/lib/chef/knife/cookbook_site_download.rb
index 8e9022ce53..95a339bac9 100644
--- a/lib/chef/knife/cookbook_site_download.rb
+++ b/lib/chef/knife/cookbook_site_download.rb
@@ -28,7 +28,7 @@ class Chef
options.merge!(superclass.options)
banner "knife cookbook site download COOKBOOK [VERSION] (options)"
- category "cookbook site"
+ category "deprecated"
end
end
end
diff --git a/lib/chef/knife/cookbook_site_install.rb b/lib/chef/knife/cookbook_site_install.rb
index 18e75442ca..cf955e0ca4 100644
--- a/lib/chef/knife/cookbook_site_install.rb
+++ b/lib/chef/knife/cookbook_site_install.rb
@@ -28,7 +28,7 @@ class Chef
options.merge!(superclass.options)
banner "knife cookbook site install COOKBOOK [VERSION] (options)"
- category "cookbook site"
+ category "deprecated"
end
end
diff --git a/lib/chef/knife/cookbook_site_list.rb b/lib/chef/knife/cookbook_site_list.rb
index b0ec22ac1e..36623e09a5 100644
--- a/lib/chef/knife/cookbook_site_list.rb
+++ b/lib/chef/knife/cookbook_site_list.rb
@@ -28,7 +28,7 @@ class Chef
options.merge!(superclass.options)
banner "knife cookbook site list (options)"
- category "cookbook site"
+ category "deprecated"
end
end
diff --git a/lib/chef/knife/cookbook_site_search.rb b/lib/chef/knife/cookbook_site_search.rb
index b5e375913f..92234421f9 100644
--- a/lib/chef/knife/cookbook_site_search.rb
+++ b/lib/chef/knife/cookbook_site_search.rb
@@ -28,7 +28,7 @@ class Chef
options.merge!(superclass.options)
banner "knife cookbook site search QUERY (options)"
- category "cookbook site"
+ category "deprecated"
end
end
diff --git a/lib/chef/knife/cookbook_site_share.rb b/lib/chef/knife/cookbook_site_share.rb
index 6e14337ff5..1cc0c8a017 100644
--- a/lib/chef/knife/cookbook_site_share.rb
+++ b/lib/chef/knife/cookbook_site_share.rb
@@ -29,7 +29,7 @@ class Chef
options.merge!(superclass.options)
banner "knife cookbook site share COOKBOOK [CATEGORY] (options)"
- category "cookbook site"
+ category "deprecated"
end
end
diff --git a/lib/chef/knife/cookbook_site_show.rb b/lib/chef/knife/cookbook_site_show.rb
index f365ed1fe0..a5e92e70ab 100644
--- a/lib/chef/knife/cookbook_site_show.rb
+++ b/lib/chef/knife/cookbook_site_show.rb
@@ -28,7 +28,7 @@ class Chef
options.merge!(superclass.options)
banner "knife cookbook site show COOKBOOK [VERSION] (options)"
- category "cookbook site"
+ category "deprecated"
end
end
diff --git a/lib/chef/knife/cookbook_site_unshare.rb b/lib/chef/knife/cookbook_site_unshare.rb
index 8f24df8b0f..15f84711cb 100644
--- a/lib/chef/knife/cookbook_site_unshare.rb
+++ b/lib/chef/knife/cookbook_site_unshare.rb
@@ -29,7 +29,7 @@ class Chef
options.merge!(superclass.options)
banner "knife cookbook site unshare COOKBOOK (options)"
- category "cookbook site"
+ category "deprecated"
end
end
diff --git a/lib/chef/knife/null.rb b/lib/chef/knife/null.rb
index 0b5058e8ea..d3abbea4e9 100644
--- a/lib/chef/knife/null.rb
+++ b/lib/chef/knife/null.rb
@@ -3,6 +3,9 @@ class Chef
class Null < Chef::Knife
banner "knife null"
+ # setting the category to deprecated keeps it out of help
+ category "deprecated"
+
def run
end
end