mirror of
				https://github.com/therootcompany/greenlock.js.git
				synced 2024-11-16 17:29:00 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			415 B
		
	
	
	
		
			JavaScript
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			415 B
		
	
	
	
		
			JavaScript
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/env node
 | |
| 'use strict';
 | |
| 
 | |
| var args = process.argv.slice(2);
 | |
| var arg0 = args[0];
 | |
| //console.log(args);
 | |
| 
 | |
| var found = ['certonly', 'add', 'update', 'config', 'defaults', 'remove', 'init'].some(
 | |
|     function(k) {
 | |
|         if (k === arg0) {
 | |
|             require('./' + k);
 | |
|             return true;
 | |
|         }
 | |
|     }
 | |
| );
 | |
| 
 | |
| if (!found) {
 | |
|     console.error(arg0 + ': command not yet implemented');
 | |
|     process.exit(1);
 | |
| }
 |