mirror of
https://github.com/inspec/inspec
synced 2024-09-21 06:51:56 +00:00
Add Chef patent URL to --help
Fixes #5248 Signed-off-by: James Stocks <jstocks@chef.io>
This commit is contained in:
parent
38971c7122
commit
7576ad8ff5
2 changed files with 18 additions and 0 deletions
|
@ -164,6 +164,12 @@ module Inspec
|
|||
desc: "After normal execution order, results are sorted by control ID, or by file (default), or randomly. None uses legacy unsorted mode."
|
||||
end
|
||||
|
||||
def self.help(*args)
|
||||
super(*args)
|
||||
puts "\nAbout #{Inspec::Dist::PRODUCT_NAME}:"
|
||||
puts " Patents: chef.io/patents\n\n"
|
||||
end
|
||||
|
||||
def self.format_platform_info(params: {}, indent: 0, color: 39)
|
||||
str = ""
|
||||
params.each do |item, info|
|
||||
|
|
|
@ -74,5 +74,17 @@ describe "command tests" do
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
it "has an About section" do
|
||||
outputs.each do |output|
|
||||
_(output).must_include("About Chef InSpec")
|
||||
end
|
||||
end
|
||||
|
||||
it "mentions Chef's patents" do
|
||||
outputs.each do |output|
|
||||
_(output).must_include("Patents: chef.io/patents")
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue