Skip to content

Commit 74f5680

Browse files
committed
- Add rush ls as an alias to rush list
1 parent b9b6665 commit 74f5680

File tree

5 files changed

+15
-9
lines changed

5 files changed

+15
-9
lines changed

doc/rush-list.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
.PP
2727
Show packages in one or all repositories.
2828
.IP \[bu] 2
29-
Alias: \f[B]l\f[R]
29+
Alias: \f[B]l, ls\f[R]
3030
.SH ARGUMENTS
3131
.SS REPO_OR_PACKAGE
3232
.PP

doc/rush-list.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ DESCRIPTION
1717

1818
Show packages in one or all repositories.
1919

20-
- Alias: **l**
20+
- Alias: **l, ls**
2121

2222
ARGUMENTS
2323
==================================================

rush

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ rush_list_usage() {
751751

752752
fi
753753

754-
printf "Alias: l\n"
754+
printf "Alias: l, ls\n"
755755
echo
756756

757757
printf "%s\n" "$(bold "Usage:")"
@@ -1305,6 +1305,10 @@ send_completions() {
13051305
echo $' while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_rush_completions_filter "$(rush list -s -a) --clone --force --help --verbose -c -f -h -v")" -- "$cur" )'
13061306
echo $' ;;'
13071307
echo $''
1308+
echo $' \'ls\'*)'
1309+
echo $' while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_rush_completions_filter "--all --help --simple -a -h -s")" -- "$cur" )'
1310+
echo $' ;;'
1311+
echo $''
13081312
echo $' \'a\'*)'
13091313
echo $' while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A directory -W "$(_rush_completions_filter "--help -h")" -- "$cur" )'
13101314
echo $' ;;'
@@ -1346,7 +1350,7 @@ send_completions() {
13461350
echo $' ;;'
13471351
echo $''
13481352
echo $' *)'
1349-
echo $' while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_rush_completions_filter "$(rush list -s -a) --help --version -h -v a add c clone completions config copy default download e edit g get i info l list p pull push r remove s search show snatch u undo update upload")" -- "$cur" )'
1353+
echo $' while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_rush_completions_filter "$(rush list -s -a) --help --version -h -v a add c clone completions config copy default download e edit g get i info l list ls p pull push r remove s search show snatch u undo update upload")" -- "$cur" )'
13501354
echo $' ;;'
13511355
echo $''
13521356
echo $' esac'
@@ -2089,7 +2093,7 @@ parse_requirements() {
20892093
shift $#
20902094
;;
20912095

2092-
list | l)
2096+
list | l | ls)
20932097
action="list"
20942098
shift
20952099
rush_list_parse_requirements "$@"

src/bashly.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ version: 0.7.11
44
completions: [$(rush list -s -a)]
55

66
x_mandoc_authors: Danny Ben Shitrit <https://github.com/dannyben>
7-
87
x_mandoc_footer: |-
98
# SOURCE CODE
109
@@ -14,7 +13,6 @@ x_mandoc_footer: |-
1413
1514
https://github.com/dannyben/rush-cli/issues
1615
17-
1816
environment_variables:
1917
- name: rush_config
2018
help: |-
@@ -335,7 +333,7 @@ commands:
335333
- rush info centos:ruby
336334

337335
- name: list
338-
alias: l
336+
alias: [l, ls]
339337
group: Package
340338
help: Show packages in one or all repositories.
341339

src/lib/send_completions.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ send_completions() {
110110
echo $' while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_rush_completions_filter "$(rush list -s -a) --clone --force --help --verbose -c -f -h -v")" -- "$cur" )'
111111
echo $' ;;'
112112
echo $''
113+
echo $' \'ls\'*)'
114+
echo $' while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_rush_completions_filter "--all --help --simple -a -h -s")" -- "$cur" )'
115+
echo $' ;;'
116+
echo $''
113117
echo $' \'a\'*)'
114118
echo $' while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A directory -W "$(_rush_completions_filter "--help -h")" -- "$cur" )'
115119
echo $' ;;'
@@ -151,7 +155,7 @@ send_completions() {
151155
echo $' ;;'
152156
echo $''
153157
echo $' *)'
154-
echo $' while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_rush_completions_filter "$(rush list -s -a) --help --version -h -v a add c clone completions config copy default download e edit g get i info l list p pull push r remove s search show snatch u undo update upload")" -- "$cur" )'
158+
echo $' while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_rush_completions_filter "$(rush list -s -a) --help --version -h -v a add c clone completions config copy default download e edit g get i info l list ls p pull push r remove s search show snatch u undo update upload")" -- "$cur" )'
155159
echo $' ;;'
156160
echo $''
157161
echo $' esac'

0 commit comments

Comments
 (0)