mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
Add octodns-versions command
This commit is contained in:
25
octodns/cmds/versions.py
Executable file
25
octodns/cmds/versions.py
Executable file
@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env python
|
||||
'''
|
||||
octoDNS Versions
|
||||
'''
|
||||
|
||||
from __future__ import absolute_import, division, print_function, \
|
||||
unicode_literals
|
||||
|
||||
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()
|
||||
|
||||
Manager(args.config_file)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
Reference in New Issue
Block a user