Add qeda completion command to CLI
				
					
				
			This commit is contained in:
		
							
								
								
									
										4
									
								
								bin/qeda
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								bin/qeda
									
									
									
									
									
								
							| @@ -31,6 +31,7 @@ Commands:\n\ | ||||
|   config PARAM [VALUE]  Set/get config parameter\n\ | ||||
|   generate LIBRARY      Generate libraries according to config\n\ | ||||
|   test COMPONENT        Generate test library with one component only\n\ | ||||
|   completion            Display completion script\n\ | ||||
| \n\ | ||||
| Examples: \n\ | ||||
|   qeda reset\n\ | ||||
| @@ -307,6 +308,9 @@ switch (command) { | ||||
|     } | ||||
|     testComponent(args.argv.remain[1]); | ||||
|     break; | ||||
|   case 'completion': | ||||
|     console.log(fs.readFileSync(__dirname + '/../scripts/qeda').toString()); | ||||
|     break; | ||||
|  | ||||
|   default: | ||||
|     displayError('Unknown command "' + command + '"'); | ||||
|   | ||||
							
								
								
									
										13
									
								
								scripts/qeda
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								scripts/qeda
									
									
									
									
									
								
							| @@ -1,3 +1,16 @@ | ||||
| # | ||||
| # qeda command completion script | ||||
| # | ||||
| # Installation: | ||||
| #     source <(qeda completion) | ||||
| # ... or: | ||||
| #     qeda completion >> ~/.bashrc  (or ~/.zshrc) | ||||
| # ... or: | ||||
| #     qeda completion > /usr/local/etc/bash_completion.d/qeda | ||||
| # ... or: | ||||
| #     qeda completion > /etc/bash_completion.d/qeda | ||||
| # | ||||
|  | ||||
| _qeda() | ||||
| { | ||||
|     local cur prev opts base | ||||
|   | ||||
		Reference in New Issue
	
	Block a user