Преглед на файлове

update shell completions for new eunit commands

pull/805/head
alisdair sullivan преди 9 години
родител
ревизия
a4e020d1ed
променени са 3 файла, в които са добавени 17 реда и са изтрити 5 реда
  1. +2
    -2
      priv/shell-completion/bash/rebar3
  2. +8
    -1
      priv/shell-completion/fish/rebar3.fish
  3. +7
    -2
      priv/shell-completion/zsh/_rebar3

+ 2
- 2
priv/shell-completion/bash/rebar3 Целия файл

@ -93,8 +93,8 @@ _rebar3()
elif [[ ${prev} == escriptize ]] ; then elif [[ ${prev} == escriptize ]] ; then
: :
elif [[ ${prev} == eunit ]] ; then elif [[ ${prev} == eunit ]] ; then
sopts="-c -v"
lopts="--app --cover --suite --verbose"
sopts="-c -e -v"
lopts="--app --application --cover --dir --error_on_warning --file --module --suite --verbose"
elif [[ ${prev} == help ]] ; then elif [[ ${prev} == help ]] ; then
: :
elif [[ ${prev} == new ]] ; then elif [[ ${prev} == new ]] ; then

+ 8
- 1
priv/shell-completion/fish/rebar3.fish Целия файл

@ -109,9 +109,16 @@ complete -f -c 'rebar3' -n '__fish_rebar3_needs_command' -a edoc -d "Generate do
complete -f -c 'rebar3' -n '__fish_rebar3_needs_command' -a escriptize -d "Generate escript archive." complete -f -c 'rebar3' -n '__fish_rebar3_needs_command' -a escriptize -d "Generate escript archive."
complete -f -c 'rebar3' -n '__fish_rebar3_needs_command' -a eunit -d "Run EUnit Tests." complete -f -c 'rebar3' -n '__fish_rebar3_needs_command' -a eunit -d "Run EUnit Tests."
complete -f -c 'rebar3' -n '__fish_rebar3_using_command eunit' -l app -d "Comma separated list of application test suites to run. Equivalent to `[{application, App}]`"
complete -f -c 'rebar3' -n '__fish_rebar3_using_command eunit' -l application -d "Comma separated list of application test suites to run. Equivalent to `[{application, App}]`"
complete -f -c 'rebar3' -n '__fish_rebar3_using_command eunit' -s c -l cover -d "Generate cover data" complete -f -c 'rebar3' -n '__fish_rebar3_using_command eunit' -s c -l cover -d "Generate cover data"
complete -f -c 'rebar3' -n '__fish_rebar3_using_command eunit' -l dir -d "Comma separated list of dirs to load tests from. Equivalent to `[{dir, Dir}]`"
complete -f -c 'rebar3' -n '__fish_rebar3_using_command eunut' -s e -l error_on_warning -d "Error on invalid test specifications instead of warning"
complete -f -c 'rebar3' -n '__fish_rebar3_using_command eunit' -l file -d "Comma separated list of files to load tests from. Equivalent to `[{file, File}]`"
complete -f -c 'rebar3' -n '__fish_rebar3_using_command eunit' -l module -d "Comma separated list of modules to load tests from. Equivalent to `[{module, Module}]`"
complete -f -c 'rebar3' -n '__fish_rebar3_using_command eunit' -l suite -d "Comma separated list of modules to load tests from. Equivalent to `[{module, Module}]`"
complete -f -c 'rebar3' -n '__fish_rebar3_using_command eunit' -s v -l verbose -d "Verbose output" complete -f -c 'rebar3' -n '__fish_rebar3_using_command eunit' -s v -l verbose -d "Verbose output"
complete -f -c 'rebar3' -n '__fish_rebar3_using_command eunit' -l app -d "List of applications to run tests for"
complete -f -c 'rebar3' -n '__fish_rebar3_using_command eunit' -l suite -d "Lists of test suites to run" complete -f -c 'rebar3' -n '__fish_rebar3_using_command eunit' -l suite -d "Lists of test suites to run"
complete -f -c 'rebar3' -n '__fish_rebar3_needs_command' -a help -d "Display a list of tasks or help for a given task or subtask." complete -f -c 'rebar3' -n '__fish_rebar3_needs_command' -a help -d "Display a list of tasks or help for a given task or subtask."

+ 7
- 2
priv/shell-completion/zsh/_rebar3 Целия файл

@ -92,9 +92,14 @@ _rebar3 () {
;; ;;
(eunit) (eunit)
_arguments \ _arguments \
'(--app)--app[List of application test suites to run]:suites' \
'(--suite)--suite[List of test suites to run]:suites' \
'(--app)--app[Comma separated list of application test suites to run]:suites' \
'(--application)--application[Comma separated list of application test suites to run]:applications' \
'(-c --cover)'{-c,--cover}'[Generate cover data]' \ '(-c --cover)'{-c,--cover}'[Generate cover data]' \
'(--dir)--dir[Comma separated list of dirs to load tests from]:dirs' \
'(-e --error_on_warning)'{-e,--error_on_warning}'[Error on invalid test specifications instead of warning]' \
'(--file)--file[Comma separated list of files to load tests from]:files' \
'(--module)--module[Comma separated list of modules to load tests from]:modules' \
'(--suite)--suite[Comma separated list of modules to load tests from]:modules' \
'(-v --verbose)'{-v,--verbose}'[Verbose output]' \ '(-v --verbose)'{-v,--verbose}'[Verbose output]' \
&& ret=0 && ret=0
;; ;;

Зареждане…
Отказ
Запис