File tree Expand file tree Collapse file tree 7 files changed +33
-3
lines changed
Expand file tree Collapse file tree 7 files changed +33
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ generate: bashly generate
77test: docker-compose run --rm test
88#? run tests in a container
99
10- shellcheck: shellcheck rush
10+ shellcheck: shellcheck rush && echo "PASS"
1111#? run shellcheck tests
1212
1313version: \
Original file line number Diff line number Diff line change @@ -1329,10 +1329,12 @@ rush_search_command() {
13291329 [[ " $repo " != " default" ]] && prefix=" $repo :"
13301330
13311331 # Search directories matching search text
1332+ blue " Matching packages:\n"
13321333 find " $repo_path " -type d -not -path ' */\.*' | grep --color=always " $text " | \
13331334 sed " s#${repo_path} /#${prefix} #g" | sed ' s#/info##'
13341335
13351336 # Search info files matching search text
1337+ blue " \nMatching info files:\n"
13361338 grep --color=always --initial-tab --recursive --ignore-case --include " info" \
13371339 " $text " " $repo_path " | \
13381340 sort | \
@@ -2376,7 +2378,7 @@ rush_edit_parse_requirements() {
23762378
23772379# :command.initialize
23782380initialize () {
2379- version=" 0.5.8 "
2381+ version=" 0.5.9 "
23802382 long_usage=' '
23812383 set -e
23822384
Original file line number Diff line number Diff line change 11name : rush
22help : Personal package manager
3- version : 0.5.8
3+ version : 0.5.9
44
55environment_variables :
66- name : rush_config
Original file line number Diff line number Diff line change @@ -10,10 +10,12 @@ search_repo() {
1010 [[ " $repo " != " default" ]] && prefix=" $repo :"
1111
1212 # Search directories matching search text
13+ blue " Matching packages:\n"
1314 find " $repo_path " -type d -not -path ' */\.*' | grep --color=always " $text " | \
1415 sed " s#${repo_path} /#${prefix} #g" | sed ' s#/info##'
1516
1617 # Search info files matching search text
18+ blue " \nMatching info files:\n"
1719 grep --color=always --initial-tab --recursive --ignore-case --include " info" \
1820 " $text " " $repo_path " | \
1921 sort | \
Original file line number Diff line number Diff line change 1+ [34mMatching packages:
2+ [0m
3+ [01;31m[Khello[m[K
4+ [34m
5+ Matching info files:
6+ [0m
7+ [35m[Khello[m[K[36m[K:[m[K $ rush info [01;31m[Khello[m[K
8+
9+ [34mMatching packages:
10+ [0m
11+ sample:[01;31m[Khello[m[K
12+ [34m
13+ Matching info files:
14+ [0m
15+ [35m[Ksample:hello[m[K[36m[K:[m[K $ rush info [01;31m[Khello[m[K
Original file line number Diff line number Diff line change 1+ [34mMatching packages:
2+ [0m
3+ [34m
4+ Matching info files:
5+ [0m
16[35m[Khello[m[K[36m[K:[m[K This info file can be accessed by [01;31m[Krunning[m[K
27[35m[Knested/hi[m[K[36m[K:[m[K This info file can be accessed by [01;31m[Krunning[m[K
38
9+ [34mMatching packages:
10+ [0m
11+ [34m
12+ Matching info files:
13+ [0m
414[35m[Ksample:hello[m[K[36m[K:[m[K This info file can be accessed by [01;31m[Krunning[m[K
515[35m[Ksample:nested/hi[m[K[36m[K:[m[K This info file can be accessed by [01;31m[Krunning[m[K
Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ describe "search"
115115 approve " rush search"
116116 approve " rush search -h"
117117 approve " rush search running"
118+ approve " rush search hello"
118119 apk del grep > /dev/null 2>&1
119120 approve " rush search busybox-error"
120121
You can’t perform that action at this time.
0 commit comments