#23 github: complete 'browse' command
This commit is contained in:
		
							parent
							
								
									0047884c4a
								
							
						
					
					
						commit
						8603aeaa13
					
				
							
								
								
									
										18
									
								
								_github
								
								
								
								
							
							
						
						
									
										18
									
								
								_github
								
								
								
								
							|  | @ -60,8 +60,10 @@ _github() { | ||||||
|           _message 'no more arguments' && ret=0 |           _message 'no more arguments' && ret=0 | ||||||
|         ;; |         ;; | ||||||
|         (browse) |         (browse) | ||||||
|           # TODO Not implemented |           _arguments \ | ||||||
|           _message "${words[1]} command argument" && ret=0 |             '1: :_github_users' \ | ||||||
|  |             '2: :_github_branches' \ | ||||||
|  |           && ret=0 | ||||||
|         ;; |         ;; | ||||||
|         (clone) |         (clone) | ||||||
|           # TODO Not implemented |           # TODO Not implemented | ||||||
|  | @ -126,4 +128,16 @@ _github() { | ||||||
|   return ret |   return ret | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | (( $+functions[_github_users] )) || | ||||||
|  | _github_users() { | ||||||
|  |   # TODO Not implemented | ||||||
|  |   _message -e users 'user' | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | (( $+functions[_github_branches] )) || | ||||||
|  | _github_branches() { | ||||||
|  |   # TODO Not implemented | ||||||
|  |   _message -e branches 'branch' | ||||||
|  | } | ||||||
|  | 
 | ||||||
| _github "$@" | _github "$@" | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue