70 lines
		
	
	
		
			3.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
			
		
		
	
	
			70 lines
		
	
	
		
			3.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
| #compdef jmeter
 | |
| # ------------------------------------------------------------------------------
 | |
| # Copyright (c) 2011 Github zsh-users - http://github.com/zsh-users
 | |
| # All rights reserved.
 | |
| #
 | |
| # Redistribution and use in source and binary forms, with or without
 | |
| # modification, are permitted provided that the following conditions are met:
 | |
| #     * Redistributions of source code must retain the above copyright
 | |
| #       notice, this list of conditions and the following disclaimer.
 | |
| #     * Redistributions in binary form must reproduce the above copyright
 | |
| #       notice, this list of conditions and the following disclaimer in the
 | |
| #       documentation and/or other materials provided with the distribution.
 | |
| #     * Neither the name of the zsh-users nor the
 | |
| #       names of its contributors may be used to endorse or promote products
 | |
| #       derived from this software without specific prior written permission.
 | |
| #
 | |
| # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
 | |
| # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 | |
| # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 | |
| # DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
 | |
| # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 | |
| # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 | |
| # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 | |
| # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 | |
| # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 | |
| # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 | |
| # ------------------------------------------------------------------------------
 | |
| # Description
 | |
| # -----------
 | |
| #
 | |
| #  Completion script for JMeter (http://jakarta.apache.org/jmeter).
 | |
| #
 | |
| #  Status: incomplete
 | |
| #
 | |
| # ------------------------------------------------------------------------------
 | |
| # Authors
 | |
| # -------
 | |
| #
 | |
| #  * Julien Nicoulaud <julien.nicoulaud@gmail.com>
 | |
| #
 | |
| # ------------------------------------------------------------------------------
 | |
| # -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*-
 | |
| # vim: ft=zsh sw=2 ts=2 et
 | |
| # ------------------------------------------------------------------------------
 | |
| 
 | |
| 
 | |
| _arguments \
 | |
|   '(- 1 *)'{-h,--help}'[print usage information and exit]' \
 | |
|   '(- 1 *)'{-v,--version}'[print the version information and exit]' \
 | |
|   {-p,--propfile}'[the jmeter property file to use]:properties file:_files -g "*.properties"' \
 | |
|   '*'{-q,--addprop}'[additional property file(s)]:properties file:_files -g "*.properties"' \
 | |
|   {-t,--testfile}'[the jmeter test plan file to run]:JMeter test plan file:_files -g "*.jmx"' \
 | |
|   {-j,--jmeterlogfile}'[the jmeter log file]: :_files -g "*.log"' \
 | |
|   {-l,--logfile}'[the file to log samples to]: :_files -g "*.jtl"' \
 | |
|   {-n,--nongui}'[run JMeter in nongui mode]' \
 | |
|   {-s,--server}'[run the JMeter server]' \
 | |
|   {-H,--proxyHost}'[set a proxy server for JMeter to use]: :_hosts' \
 | |
|   {-P,--proxyPort}'[set proxy server port for JMeter to use]:number' \
 | |
|   {-u,--username}'[set username for proxy server that JMeter is to use]:username:_users' \
 | |
|   {-a,--password}'[set password for proxy server that JMeter is to use]:password' \
 | |
|   {-J-,--jmeterproperty}'[define additional JMeter properties]:argument=value' \
 | |
|   {-G-,--globalproperty}'[define Global properties (sent to servers)]:argument=value' \
 | |
|   {-D-,--systemproperty}'[define additional System properties]:argument=value' \
 | |
|   {-S,--systemPropertyFile}'[a property file to be added as System properties]:properties file:_files -g "*.properties"' \
 | |
|   {-L,--loglevel}'[define loglevel]:[category=]level' \
 | |
|   {-r,--runremote}'[start remote servers (as defined by the jmeter property remote_hosts)]' \
 | |
|   {-R,--remotestart}'[start these remote servers (overrides remote_hosts)]:remote servers list' \
 | |
|   {-d,--homedir}'[the JMeter home directory to use]: :_files -/' \
 | |
|   {-X,--remoteexit}'[exit the remote servers at end of test (non-GUI)]'
 |