Browse Source

adjust shell completions to match available command line options

pull/894/head
alisdair sullivan 9 years ago
parent
commit
cf66dfd6ba
3 changed files with 38 additions and 31 deletions
  1. +9
    -14
      priv/shell-completion/bash/rebar3
  2. +20
    -2
      priv/shell-completion/fish/rebar3.fish
  3. +9
    -15
      priv/shell-completion/zsh/_rebar3

+ 9
- 14
priv/shell-completion/bash/rebar3 View File

@ -54,11 +54,7 @@ _rebar3()
--suite \
--group \
--case \
--spec \
--join_specs \
--label \
--config \
--userconfig \
--allow_user_terms \
--logdir \
--logopts \
@ -66,21 +62,20 @@ _rebar3()
--silent_connections \
--stylesheet \
--cover \
--cover_spec \
--cover_stop \
--event_handler \
--include \
--abort_if_missing_suites \
--multiply_timetraps \
--scale_timetraps \
--create_priv_dir \
--repeat \
--duration \
--until \
--force_stop \
--basic_html \
--ct_hooks \
--verbose"
--stylesheet \
--decrypt_key \
--decrypt_file \
--abort_if_missing_suites \
--multiply_timetraps \
--scale_timetraps \
--create_priv_dir \
--verbose" \
--auto_compile
elif [[ ${prev} == deps ]] ; then
:
elif [[ ${prev} == dialyzer ]] ; then

+ 20
- 2
priv/shell-completion/fish/rebar3.fish View File

@ -90,10 +90,28 @@ complete -f -c 'rebar3' -n '__fish_rebar3_needs_command' -a ct -d "Run Common Te
complete -f -c 'rebar3' -n '__fish_rebar3_using_command ct' -l dir -d "Compile and run all test suites in the specified directories."
complete -f -c 'rebar3' -n '__fish_rebar3_using_command ct' -l suites -d "Compile and run all test suites specified. Must be specified by full path, either absolute or relative to the current directory."
complete -f -c 'rebar3' -n '__fish_rebar3_using_command ct' -l group -d "Test groups to run."
complete -f -c 'rebar3' -n '__fish_rebar3_using_command ct' -l label -d "Test label."
complete -f -c 'rebar3' -n '__fish_rebar3_using_command ct' -l config -d "Config files to use when running tests."
complete -f -c 'rebar3' -n '__fish_rebar3_using_command ct' -l allow_user_terms -d "Allow user defined terms in config files."
complete -f -c 'rebar3' -n '__fish_rebar3_using_command ct' -l logdir -d "The directory in which test logs will be written. Default: _build/test/logs"
complete -f -c 'rebar3' -n '__fish_rebar3_using_command ct' -s v -l verbose -d "Enable verbose output. Default: false"
complete -f -c 'rebar3' -n '__fish_rebar3_using_command ct' -s c -l cover -d "Generate cover data"
complete -f -c 'rebar3' -n '__fish_rebar3_using_command ct' -l logopts -d "Options for common test logging."
complete -f -c 'rebar3' -n '__fish_rebar3_using_command ct' -l verbosity -d "Verbosity."
complete -f -c 'rebar3' -n '__fish_rebar3_using_command ct' -s c -l cover -d "Generate cover data."
complete -f -c 'rebar3' -n '__fish_rebar3_using_command ct' -l include -d "Include folders."
complete -f -c 'rebar3' -n '__fish_rebar3_using_command ct' -l repeat -d "How often to repeat tests."
complete -f -c 'rebar3' -n '__fish_rebar3_using_command ct' -l duration -d "Max runtime (format: HHMMSS)."
complete -f -c 'rebar3' -n '__fish_rebar3_using_command ct' -l until -d "Run until (format: HHMMSS)."
complete -f -c 'rebar3' -n '__fish_rebar3_using_command ct' -l force_stop -d "Force stop on test timeout."
complete -f -c 'rebar3' -n '__fish_rebar3_using_command ct' -l basic_html -d "Show basic HTML."
complete -f -c 'rebar3' -n '__fish_rebar3_using_command ct' -l stylesheet -d "CSS stylesheet to apply to html output."
complete -f -c 'rebar3' -n '__fish_rebar3_using_command ct' -l decrypt_key -d "Path to key for decrypting config."
complete -f -c 'rebar3' -n '__fish_rebar3_using_command ct' -l decrypt_file -d "Path to file containing key for decrypting config."
complete -f -c 'rebar3' -n '__fish_rebar3_using_command ct' -l abort_if_missing_suites -d "Abort if suites are missing."
complete -f -c 'rebar3' -n '__fish_rebar3_using_command ct' -l multiply_timetraps -d "Multiply timetraps."
complete -f -c 'rebar3' -n '__fish_rebar3_using_command ct' -l scale_timetraps -d "Scale timetraps."
complete -f -c 'rebar3' -n '__fish_rebar3_using_command ct' -l create_priv_dir -d "Create priv dir (auto_per_run | auto_per_tc | manual_per_tc)."
complete -f -c 'rebar3' -n '__fish_rebar3_using_command ct' -s v -l verbose -d "Enable verbose output. Default: false."
complete -f -c 'rebar3' -n '__fish_rebar3_using_command ct' -l auto_compile -d "Let common test compile test suites instead of rebar3."
complete -f -c 'rebar3' -n '__fish_rebar3_needs_command' -a deps -d "List dependencies"

+ 9
- 15
priv/shell-completion/zsh/_rebar3 View File

@ -43,33 +43,27 @@ _rebar3 () {
'(--suite)--suite[List of test suites to run]:suites' \
'(--group)--group[List of test groups to run]:groups' \
'(--case)--case[List of test cases to run]:cases' \
'(--spec)--spec[List of test specs to run]:specs' \
'(--join_specs)--join_specs' \
'(--label)--label[Test label]:label' \
'(--config)--config[List of config files]:config files:_files' \
'(--userconfig)--userconfig' \
'(--allow_user_terms)--allow_user_terms' \
'(--logdir)--logdir[Log folder]:log folder:_files -/' \
'(--logopts)--logopts' \
'(--verbosity)--verbosity[Verbosity]:verbosity' \
'(--silent_connections)--silent_connections' \
'(--stylesheet)--stylesheet[Stylesheet to use for test results]:stylesheet:_files' \
'(-c --cover)'{-c,--cover}'[Generate cover data]' \
'(--cover_spec)--cover_spec[Cover file to use]:cover file:_files' \
'(--cover_stop)--cover_stop' \
'(--event_handler)--event_handler[Event handlers to attach to the runner]:event handlers' \
'(--include)--include[Include folder]:include directory:_files -/' \
'(--abort_if_missing_suites)--abort_if_missing_suites[Abort if suites are missing]:abort missing suites:(true false)' \
'(--multiply_timetraps)--multiply_timetraps' \
'(--scale_timetraps)--scale_timetraps' \
'(--create_priv_dir)--create_priv_dir' \
'(--repeat)--repeat[How often to repeat tests]:repeat test count' \
'(--duration)--duration[Max runtime (format: HHMMSS)]:max run time' \
'(--until)--until[Run until (format: HHMMSS)]:run until time' \
'(--force_stop)--force_stop[Force stop after time]' \
'(--force_stop)--force_stop[Force stop on test timeout]:skip_rest' \
'(--basic_html)--basic_html[Show basic HTML]' \
'(--ct_hooks)--ct_hooks:ct hooks' \
'(--stylesheet)--stylesheet[Stylesheet to use for test results]:stylesheet:_files' \
'(--decrypt_key)--decrypt_key[Path to key for decrypting config]:decrypt key:_files' \
'(--decrypt_file)--decrypt_file[Path to file containing key for decrypting config]:decrypt file:_files' \
'(--abort_if_missing_suites)--abort_if_missing_suites[Abort if suites are missing]:abort missing suites:(true false)' \
'(--multiply_timetraps)--multiply_timetraps' \
'(--scale_timetraps)--scale_timetraps' \
'(--create_priv_dir)--create_priv_dir' \
'(-v --verbose)'{-v,--verbose}'[Print coverage analysis]' \
'(--auto_compile)--auto_compile' \
&& ret=0
;;
(deps)

Loading…
Cancel
Save