diff --git a/doc/rush-list.1 b/doc/rush-list.1 index af86c56..a7b7343 100644 --- a/doc/rush-list.1 +++ b/doc/rush-list.1 @@ -26,7 +26,7 @@ .PP Show packages in one or all repositories. .IP \[bu] 2 -Alias: \f[B]l\f[R] +Alias: \f[B]l, ls\f[R] .SH ARGUMENTS .SS REPO_OR_PACKAGE .PP diff --git a/doc/rush-list.md b/doc/rush-list.md index 6f35f2a..91757d6 100644 --- a/doc/rush-list.md +++ b/doc/rush-list.md @@ -17,7 +17,7 @@ DESCRIPTION Show packages in one or all repositories. -- Alias: **l** +- Alias: **l, ls** ARGUMENTS ================================================== diff --git a/rush b/rush index 1d76dc8..212e6c5 100755 --- a/rush +++ b/rush @@ -751,7 +751,7 @@ rush_list_usage() { fi - printf "Alias: l\n" + printf "Alias: l, ls\n" echo printf "%s\n" "$(bold "Usage:")" @@ -1305,6 +1305,10 @@ send_completions() { 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" )' echo $' ;;' echo $'' + echo $' \'ls\'*)' + echo $' while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_rush_completions_filter "--all --help --simple -a -h -s")" -- "$cur" )' + echo $' ;;' + echo $'' echo $' \'a\'*)' echo $' while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A directory -W "$(_rush_completions_filter "--help -h")" -- "$cur" )' echo $' ;;' @@ -1346,7 +1350,7 @@ send_completions() { echo $' ;;' echo $'' echo $' *)' - 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" )' + 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" )' echo $' ;;' echo $'' echo $' esac' @@ -2089,7 +2093,7 @@ parse_requirements() { shift $# ;; - list | l) + list | l | ls) action="list" shift rush_list_parse_requirements "$@" diff --git a/setup b/setup index b07778f..fa6c42b 100755 --- a/setup +++ b/setup @@ -100,7 +100,7 @@ initialize() { repo="$1" repo_url="https://github.com/${repo}.git" - pushd $(mktemp -d) > /dev/null + pushd "$(mktemp -d)" >/dev/null } section "Initializing" diff --git a/src/bashly.yml b/src/bashly.yml index 239e86b..68c865a 100644 --- a/src/bashly.yml +++ b/src/bashly.yml @@ -4,7 +4,6 @@ version: 0.7.11 completions: [$(rush list -s -a)] x_mandoc_authors: Danny Ben Shitrit - x_mandoc_footer: |- # SOURCE CODE @@ -14,7 +13,6 @@ x_mandoc_footer: |- https://github.com/dannyben/rush-cli/issues - environment_variables: - name: rush_config help: |- @@ -335,7 +333,7 @@ commands: - rush info centos:ruby - name: list - alias: l + alias: [l, ls] group: Package help: Show packages in one or all repositories. diff --git a/src/lib/send_completions.sh b/src/lib/send_completions.sh index cc40e5f..b037294 100644 --- a/src/lib/send_completions.sh +++ b/src/lib/send_completions.sh @@ -110,6 +110,10 @@ send_completions() { 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" )' echo $' ;;' echo $'' + echo $' \'ls\'*)' + echo $' while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_rush_completions_filter "--all --help --simple -a -h -s")" -- "$cur" )' + echo $' ;;' + echo $'' echo $' \'a\'*)' echo $' while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A directory -W "$(_rush_completions_filter "--help -h")" -- "$cur" )' echo $' ;;' @@ -151,7 +155,7 @@ send_completions() { echo $' ;;' echo $'' echo $' *)' - 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" )' + 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" )' echo $' ;;' echo $'' echo $' esac' diff --git a/test/approvals/rush_completions b/test/approvals/rush_completions index 13aab2c..756d8de 100644 --- a/test/approvals/rush_completions +++ b/test/approvals/rush_completions @@ -108,6 +108,10 @@ _rush_completions() { 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" ) ;; + 'ls'*) + while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_rush_completions_filter "--all --help --simple -a -h -s")" -- "$cur" ) + ;; + 'a'*) while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A directory -W "$(_rush_completions_filter "--help -h")" -- "$cur" ) ;; @@ -149,7 +153,7 @@ _rush_completions() { ;; *) - 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" ) + 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" ) ;; esac diff --git a/test/approvals/rush_list_h b/test/approvals/rush_list_h index a1c3424..3012cb8 100644 --- a/test/approvals/rush_list_h +++ b/test/approvals/rush_list_h @@ -1,6 +1,6 @@ rush list - Show packages in one or all repositories. -Alias: l +Alias: l, ls Usage: rush list [REPO_OR_PACKAGE] [OPTIONS]