mirror of
				https://github.com/github/octodns.git
				synced 2024-05-11 05:55:00 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
		
			600 B
		
	
	
	
		
			Python
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			600 B
		
	
	
	
		
			Python
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/env python
 | |
| '''
 | |
| Octo-DNS Validator
 | |
| '''
 | |
| 
 | |
| from __future__ import absolute_import, division, print_function, \
 | |
|     unicode_literals
 | |
| 
 | |
| from logging import WARN
 | |
| 
 | |
| from octodns.cmds.args import ArgumentParser
 | |
| from octodns.manager import Manager
 | |
| 
 | |
| 
 | |
| def main():
 | |
|     parser = ArgumentParser(description=__doc__.split('\n')[1])
 | |
| 
 | |
|     parser.add_argument('--config-file', required=True,
 | |
|                         help='The Manager configuration file to use')
 | |
| 
 | |
|     args = parser.parse_args(WARN)
 | |
| 
 | |
|     manager = Manager(args.config_file)
 | |
|     manager.validate_configs()
 | |
| 
 | |
| 
 | |
| if __name__ == '__main__':
 | |
|     main()
 |