Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
chromebrew
Commits
666415d6
Commit
666415d6
authored
Mar 17, 2021
by
saltedcoffii
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow crew to print license information
parent
25586ea8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
crew
crew
+3
-2
No files found.
crew
View file @
666415d6
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment