| 
									
										
										
										
											2017-01-25 01:00:13 +08:00
										 |  |  | _rabbitmqctl_complete() { | 
					
						
							| 
									
										
										
										
											2017-01-31 01:54:41 +08:00
										 |  |  |     if [ -x /usr/lib/rabbitmq/bin/rabbitmqctl ]; then | 
					
						
							|  |  |  |         COMPREPLY=() | 
					
						
							|  |  |  |         local LANG=en_US.UTF-8 | 
					
						
							|  |  |  |         local word="${COMP_WORDS[COMP_CWORD]}" | 
					
						
							|  |  |  |         local completions="$(export LANG=en_US.UTF-8; export LC_CTYPE=en_US.UTF-8; /usr/lib/rabbitmq/bin/rabbitmqctl --auto-complete $COMP_LINE)" | 
					
						
							|  |  |  |         COMPREPLY=( $(compgen -W "$completions" -- "$word") ) | 
					
						
							|  |  |  |     fi | 
					
						
							| 
									
										
										
										
											2017-01-25 01:00:13 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | complete -f -F _rabbitmqctl_complete rabbitmqctl | 
					
						
							| 
									
										
										
										
											2017-01-27 21:37:38 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | complete -f -F _rabbitmqctl_complete rabbitmq-plugins | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | complete -f -F _rabbitmqctl_complete rabbitmq-diagnostics |