1
0
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:
Ross McFarland
2022-03-30 19:09:03 -07:00
parent e9d9fbc0d5
commit 6f15a4cec4
2 changed files with 27 additions and 1 deletions

25
octodns/cmds/versions.py Executable file
View 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()

View File

@ -16,7 +16,8 @@ cmds = (
'dump',
'report',
'sync',
'validate'
'validate',
'versions',
)
cmds_dir = join(dirname(__file__), 'octodns', 'cmds')
console_scripts = {