Commit 666415d6 authored by saltedcoffii's avatar saltedcoffii

Allow crew to print license information

parent 25586ea8
...@@ -129,6 +129,7 @@ def print_current_package (extra = false) ...@@ -129,6 +129,7 @@ def print_current_package (extra = false)
puts "" puts ""
puts @pkg.homepage if @pkg.homepage puts @pkg.homepage if @pkg.homepage
print "Version: #{@pkg.version}" print "Version: #{@pkg.version}"
puts @pkg.license if @pkg.license
end end
puts "" puts ""
end end
...@@ -283,12 +284,12 @@ def help (pkgName) ...@@ -283,12 +284,12 @@ def help (pkgName)
puts "If the package color is " + "green".lightgreen + ", it means the package is installed." puts "If the package color is " + "green".lightgreen + ", it means the package is installed."
puts "If the package color is " + "red".lightred + ", it means the architecture is not supported." puts "If the package color is " + "red".lightred + ", it means the architecture is not supported."
puts "The <pattern> string can also contain regular expressions." puts "The <pattern> string can also contain regular expressions."
puts "If `-v` or `--verbose` is present, homepage and version will be displayed." puts "If `-v` or `--verbose` is present, homepage, version and license will be displayed."
puts "Examples:" puts "Examples:"
puts " crew search ^lib".lightblue + " will display all packages that start with `lib`." puts " crew search ^lib".lightblue + " will display all packages that start with `lib`."
puts " crew search audio".lightblue + " will display all packages with `audio` in the name." puts " crew search audio".lightblue + " will display all packages with `audio` in the name."
puts " crew search | grep -i audio".lightblue + " will display all packages with `audio` in the name or description." puts " crew search | grep -i audio".lightblue + " will display all packages with `audio` in the name or description."
puts " crew search git -v".lightblue + " will display packages with `git` in the name along with homepage and version." puts " crew search git -v".lightblue + " will display packages with `git` in the name along with homepage, version and license."
when "update" when "update"
puts "Update crew." puts "Update crew."
puts "Usage: crew update" puts "Usage: crew update"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment