mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-09 02:24:03 +01:00
28 lines
548 B
Bash
28 lines
548 B
Bash
#compdef -P (|./)launch_trial.sh
|
|
|
|
__launch_trial_list_tests()
|
|
{
|
|
tests=($(./launch_trial.sh --list-tests))
|
|
_describe -t tests 'Select test to run' tests
|
|
}
|
|
|
|
_launch_trial()
|
|
{
|
|
typeset -A opt_args
|
|
local context state line curcontext="$curcontext"
|
|
|
|
local ret=1
|
|
|
|
_arguments -C : \
|
|
'(- 1 *)--help[show usage]'\
|
|
'(- 1 *)--htmlcov[generate html coverage report in htmlcov surbdirectory]'\
|
|
'(- 1 *)--list-tests[list all tests]'\
|
|
':projects:__launch_trial_list_tests' \
|
|
&& ret=0
|
|
|
|
return $ret
|
|
}
|
|
|
|
_launch_trial "$@"
|
|
return $?
|
|
|