mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-09 02:24:03 +01:00
updating scripts
This commit is contained in:
parent
a9da3e497d
commit
1c1ab1eaec
7 changed files with 162 additions and 9 deletions
|
|
@ -1,9 +1,16 @@
|
|||
#compdef -P (|./)launch_trial.sh
|
||||
|
||||
__launch_trial_list_tests()
|
||||
__test_programs()
|
||||
{
|
||||
tests=($(./launch_trial.sh --list-tests))
|
||||
_describe -t tests 'Select test to run' tests
|
||||
tests=($(./launch_trial.sh --list-test-programs))
|
||||
_describe -t tests 'Select test program:' tests
|
||||
}
|
||||
|
||||
__test_program_and_class()
|
||||
{
|
||||
_arguments -C : \
|
||||
'2: :__test_programs' \
|
||||
'3: :__test_programs'
|
||||
}
|
||||
|
||||
_launch_trial()
|
||||
|
|
@ -14,10 +21,12 @@ _launch_trial()
|
|||
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' \
|
||||
'(- 1 *)--help[show usage]' \
|
||||
'(- 1 *)--htmlcov[generate html coverage report in htmlcov surbdirectory]' \
|
||||
'(- 1 *)--list-test-programs[list all test programs]' \
|
||||
'(- 1 *)--list-test-classes[list test classes for a given test program]:programs:__test_programs' \
|
||||
'(- 1 *)--list-test-methods[list all test method of a given test class]:class:__test_program_and_class' \
|
||||
':projects:__test_programs' \
|
||||
&& ret=0
|
||||
|
||||
return $ret
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue